1
0
Fork 0
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:
Sarun Rattanasiri 2021-02-12 04:56:51 +07:00 committed by GitHub
parent 2d877327e1
commit 1a3b68e7c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>

View file

@ -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
*