[DOC] Tweaks for String#<=>
This commit is contained in:
parent
bb180b87b4
commit
96b823a211
Notes:
git
2025-05-13 17:14:38 +00:00
3
string.c
3
string.c
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user