Skip to content

Commit 96b823a

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Tweaks for String#<=>
1 parent bb180b8 commit 96b823a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

string.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4610,7 +4610,7 @@ rb_str_eql(VALUE str1, VALUE str2)
46104610

46114611
/*
46124612
* call-seq:
4613-
* string <=> other_string -> -1, 0, 1, or nil
4613+
* self <=> other_string -> -1, 0, 1, or nil
46144614
*
46154615
* Compares +self+ and +other_string+, returning:
46164616
*
@@ -4621,13 +4621,14 @@ rb_str_eql(VALUE str1, VALUE str2)
46214621
*
46224622
* Examples:
46234623
*
4624-
* 'foo' <=> 'foo' # => 0
4624+
* 'foo' <=> 'foo' # => 0
46254625
* 'foo' <=> 'food' # => -1
46264626
* 'food' <=> 'foo' # => 1
4627-
* 'FOO' <=> 'foo' # => -1
4628-
* 'foo' <=> 'FOO' # => 1
4629-
* 'foo' <=> 1 # => nil
4627+
* 'FOO' <=> 'foo' # => -1
4628+
* 'foo' <=> 'FOO' # => 1
4629+
* 'foo' <=> 1 # => nil
46304630
*
4631+
* Related: see {Comparing}[rdoc-ref:String@Comparing].
46314632
*/
46324633

46334634
static VALUE

0 commit comments

Comments
 (0)