summaryrefslogtreecommitdiff
path: root/enumerator.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-07 03:52:52 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-07 03:52:52 +0000
commitd29595ceeeea08d86d3ceeec07850d4e638ba3f8 (patch)
treea1d654529c91f81d2df7b874e199f75731d6c800 /enumerator.c
parent73d6945fe3ccfc497c954c941d62c24f348bfa0f (diff)
merge revision(s) 46099: [Backport #9814]
* enumerator.c: [DOC] Fix example to show Enumerator#peek behavior Patch by Erik Hollembeak [Bug #9814] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@46745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enumerator.c')
-rw-r--r--enumerator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enumerator.c b/enumerator.c
index 4ba0ac6f12..23590fbf43 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -795,7 +795,7 @@ enumerator_peek_values_m(VALUE obj)
* p e.peek #=> 2
* p e.next #=> 2
* p e.next #=> 3
- * p e.next #raises StopIteration
+ * p e.peek #raises StopIteration
*
*/