[DOC] Tweaks for String#<=>

This commit is contained in:
BurdetteLamar 2025-05-13 10:30:24 -05:00 committed by Peter Zhu
parent bb180b87b4
commit 96b823a211
Notes: git 2025-05-13 17:14:38 +00:00

View File

@ -4610,7 +4610,7 @@ rb_str_eql(VALUE str1, VALUE str2)
/* /*
* call-seq: * call-seq:
* string <=> other_string -> -1, 0, 1, or nil * self <=> other_string -> -1, 0, 1, or nil
* *
* Compares +self+ and +other_string+, returning: * Compares +self+ and +other_string+, returning:
* *
@ -4628,6 +4628,7 @@ rb_str_eql(VALUE str1, VALUE str2)
* 'foo' <=> 'FOO' # => 1 * 'foo' <=> 'FOO' # => 1
* 'foo' <=> 1 # => nil * 'foo' <=> 1 # => nil
* *
* Related: see {Comparing}[rdoc-ref:String@Comparing].
*/ */
static VALUE static VALUE