[DOC] Tweaks for String#<=>
This commit is contained in:
parent
bb180b87b4
commit
96b823a211
Notes:
git
2025-05-13 17:14:38 +00:00
11
string.c
11
string.c
@ -4610,7 +4610,7 @@ rb_str_eql(VALUE str1, VALUE str2)
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* string <=> other_string -> -1, 0, 1, or nil
|
||||
* self <=> other_string -> -1, 0, 1, or nil
|
||||
*
|
||||
* Compares +self+ and +other_string+, returning:
|
||||
*
|
||||
@ -4621,13 +4621,14 @@ rb_str_eql(VALUE str1, VALUE str2)
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* 'foo' <=> 'foo' # => 0
|
||||
* 'foo' <=> 'foo' # => 0
|
||||
* 'foo' <=> 'food' # => -1
|
||||
* 'food' <=> 'foo' # => 1
|
||||
* 'FOO' <=> 'foo' # => -1
|
||||
* 'foo' <=> 'FOO' # => 1
|
||||
* 'foo' <=> 1 # => nil
|
||||
* 'FOO' <=> 'foo' # => -1
|
||||
* 'foo' <=> 'FOO' # => 1
|
||||
* 'foo' <=> 1 # => nil
|
||||
*
|
||||
* Related: see {Comparing}[rdoc-ref:String@Comparing].
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
Loading…
x
Reference in New Issue
Block a user