summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorSarun Rattanasiri <7634596+midnight-wonderer@users.noreply.github.com>2021-02-12 04:56:51 +0700
committerGitHub <noreply@github.com>2021-02-12 06:56:51 +0900
commit1a3b68e7c14638d1325849acd3c99ca30571cfb8 (patch)
tree45088f69e55302079b6ce948da463d463326ace0 /string.c
parent2d877327e12f499ac1a0d7096f4314cc92ef228e (diff)
correct the result of casecmp? examples [ci skip]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4174 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index e52868c80b..dbff149840 100644
--- a/string.c
+++ b/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
*