mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
correct the result of casecmp? examples [ci skip]
This commit is contained in:
parent
2d877327e1
commit
1a3b68e7c1
Notes:
git
2021-02-12 06:57:13 +09:00
Merged: https://github.com/ruby/ruby/pull/4174 Merged-By: nobu <nobu@ruby-lang.org>
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -3556,7 +3556,7 @@ str_casecmp(VALUE str1, VALUE str2)
|
|||
* Unicode case folding, otherwise +false+:
|
||||
* 'foo'.casecmp?('foo') # => true
|
||||
* 'foo'.casecmp?('food') # => false
|
||||
* 'food'.casecmp?('foo') # => true
|
||||
* 'food'.casecmp?('foo') # => false
|
||||
* 'FOO'.casecmp?('foo') # => true
|
||||
* 'foo'.casecmp?('FOO') # => true
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue