summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 18:51:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-29 18:51:39 +0000
commit950a917600310912d949a1d6c3e2b49846c048ac (patch)
tree63c3185f9fcaf5098e27f11f8e6b3cbeaacc1271 /enum.c
parent106b437ceb2795d9f9289f50b02cd38c4285790d (diff)
* removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c14
1 files changed, 7 insertions, 7 deletions
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