From 45f6fbf339e3666ea1e64d9e13fd40c61977248d Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 29 May 2010 18:51:39 +0000 Subject: * removed trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index a7df79300a..54e36ffdb9 100644 --- a/enum.c +++ b/enum.c @@ -2273,7 +2273,7 @@ chunk_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * splitted as follows. * * [3,1,4,1,5,9,2,6,5,3,5].chunk {|n| - * n.even? + * n.even? * }.each {|even, ary| * p [even, ary] * } @@ -2305,12 +2305,12 @@ chunk_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * For example, the sequence of hyphens in svn log can be eliminated as follows. * * sep = "-"*72 + "\n" - * IO.popen("svn log README") {|f| + * IO.popen("svn log README") {|f| * f.chunk {|line| * line != sep || nil * }.each {|_, lines| * pp lines - * } + * } * } * #=> ["r20018 | knu | 2008-10-29 13:20:42 +0900 (Wed, 29 Oct 2008) | 2 lines\n", * # "\n", @@ -2322,7 +2322,7 @@ chunk_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * # "\n"] * # ... * - * paragraphs separated by empty lines can be parsed as follows. + * paragraphs separated by empty lines can be parsed as follows. * * File.foreach("README").chunk {|line| * /\A\s*\z/ !~ line || nil @@ -2438,7 +2438,7 @@ slicebefore_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * * Creates an enumerator for each chunked elements. * The beginnings of chunks are defined by _pattern_ and the block. - * If _pattern_ === _elt_ returns true or + * If _pattern_ === _elt_ returns true or * the block returns true for the element, * the element is beginning of a chunk. * @@ -2471,7 +2471,7 @@ slicebefore_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * } * * "svn proplist -R" produces multiline output for each file. - * They can be chunked as follows: + * They can be chunked as follows: * * IO.popen([{"LC_ALL"=>"C"}, "svn", "proplist", "-R"]) {|f| * f.lines.slice_before(/\AProp/).each {|lines| p lines } @@ -2487,7 +2487,7 @@ slicebefore_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv) * For example, three or more consecutive increasing numbers can be squashed * as follows: * - * a = [0,2,3,4,6,7,9] + * a = [0,2,3,4,6,7,9] * prev = a[0] * p a.slice_before {|e| * prev, prev2 = e, prev -- cgit v1.2.3