ruby-changes:65244
From: Sarun <ko1@a...>
Date: Fri, 12 Feb 2021 06:57:08 +0900 (JST)
Subject: [ruby-changes:65244] 1a3b68e7c1 (master): correct the result of casecmp? examples [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=1a3b68e7c1 From 1a3b68e7c14638d1325849acd3c99ca30571cfb8 Mon Sep 17 00:00:00 2001 From: Sarun Rattanasiri <7634596+midnight-wonderer@u...> Date: Fri, 12 Feb 2021 04:56:51 +0700 Subject: correct the result of casecmp? examples [ci skip] --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index e52868c..dbff149 100644 --- a/string.c +++ b/string.c @@ -3556,7 +3556,7 @@ str_casecmp(VALUE str1, VALUE str2) https://github.com/ruby/ruby/blob/trunk/string.c#L3556 * 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 * -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/