summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 14:18:20 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 14:18:20 (GMT)
commitf436de8f31fda1aecc67914632014ec9fa566ae1 (patch)
tree177904d37b1ac56331f7e6105fafd464c45215dd /enum.c
parentab0a64e1c87d8fd9d0a6ee8bb6bc084d0a6f482b (diff)
* enum.c (enum_slice_when): [DOC] fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index ca939be..c0c72d3 100644
--- a/enum.c
+++ b/enum.c
@@ -3345,7 +3345,7 @@ slicewhen_i(RB_BLOCK_CALL_FUNC_ARGLIST(yielder, enumerator))
* d = c.join(",")
* p d #=> "1,2,4,9-12,15,16,19-21"
*
- * Near elements (threshold: 6) in sorted array can be chunked as follwos:
+ * Near elements (threshold: 6) in sorted array can be chunked as follows:
*
* a = [3, 11, 14, 25, 28, 29, 29, 41, 55, 57]
* p a.slice_when {|i, j| 6 < j - i }.to_a