ruby-changes:37837
From: ktsj <ko1@a...>
Date: Tue, 10 Mar 2015 23:18:39 +0900 (JST)
Subject: [ruby-changes:37837] ktsj:r49918 (trunk): * enum.c (enum_slice_when): [DOC] fix typo.
ktsj 2015-03-10 23:18:20 +0900 (Tue, 10 Mar 2015) New Revision: 49918 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49918 Log: * enum.c (enum_slice_when): [DOC] fix typo. Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 49917) +++ enum.c (revision 49918) @@ -3345,7 +3345,7 @@ slicewhen_i(RB_BLOCK_CALL_FUNC_ARGLIST(y https://github.com/ruby/ruby/blob/trunk/enum.c#L3345 * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/