aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
authorJoshua Young <djry1999@gmail.com>2023-07-29 23:40:27 +1000
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-30 01:02:20 +0900
commit4bdb61b665665141402c46e14dc1bea245e13fd5 (patch)
tree72e39e2fa7a815328b2015d927730732a4407e4c /enum.c
parent3d87eec94a4778cabd48726b00867a0092de5ad0 (diff)
downloadruby-4bdb61b665665141402c46e14dc1bea245e13fd5.tar.gz
[DOC] Fix missing word in a comment
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/enum.c b/enum.c
index 6fc2fc9b17..46fcb24cfd 100644
--- a/enum.c
+++ b/enum.c
@@ -4824,13 +4824,13 @@ uniq_iter(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash))
* %w[a b c c b a a b c].uniq # => ["a", "b", "c"]
* [0, 1, 2, 2, 1, 0, 0, 1, 2].uniq # => [0, 1, 2]
*
- * With a block, returns a new array containing only for which the block
+ * With a block, returns a new array containing elements only for which the block
* returns a unique value:
*
* a = [0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1]
* a.uniq {|i| i.even? ? i : 0 } # => [0, 2, 4]
* a = %w[a b c d e e d c b a a b c d e]
- a.uniq {|c| c < 'c' } # => ["a", "c"]
+ * a.uniq {|c| c < 'c' } # => ["a", "c"]
*
*/