From 27dc5a483ec6ed1f379cbd16c22054a4bbe2bf5f Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 9 Mar 2008 01:04:46 +0000 Subject: fix doc. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 5e04acbf2..0002cd728 100644 --- a/enum.c +++ b/enum.c @@ -60,9 +60,9 @@ grep_iter_i(VALUE i, VALUE *arg, int argc, VALUE *argv) * * (1..100).grep 38..44 #=> [38, 39, 40, 41, 42, 43, 44] * c = IO.constants - * c.grep(/SEEK/) #=> ["SEEK_END", "SEEK_SET", "SEEK_CUR"] + * c.grep(/SEEK/) #=> [:SEEK_SET, :SEEK_CUR, :SEEK_END] * res = c.grep(/SEEK/) {|v| IO.const_get(v) } - * res #=> [2, 0, 1] + * res #=> [0, 1, 2] * */ @@ -646,7 +646,7 @@ sort_by_cmp(const void *ap, const void *bp, void *data) * values in enum through the given block. * * %w{ apple pear fig }.sort_by {|word| word.length} - #=> ["fig", "pear", "apple"] + * #=> ["fig", "pear", "apple"] * * The current implementation of sort_by generates an * array of tuples containing the original collection element and the @@ -1294,8 +1294,8 @@ member_i(VALUE item, VALUE *memo) * Returns true if any member of enum equals * obj. Equality is tested using ==. * - * IO.constants.include? "SEEK_SET" #=> true - * IO.constants.include? "SEEK_NO_FURTHER" #=> false + * IO.constants.include? :SEEK_SET #=> true + * IO.constants.include? :SEEK_NO_FURTHER #=> false * */ -- cgit