Enumerable docs (from snapshot).

Hugh Sasse <[email protected]>
Newsgroups gmane.comp.lang.ruby.documentation
Message-ID <[email protected]>
I think that this patch


--- ./enum.c.orig       2005-12-29 12:05:16.000000000 +0000
+++ ./enum.c    2006-01-19 20:54:05.217087000 +0000
@@ -315,8 +315,8 @@

 /*
  *  call-seq:
- *     enum.inject(initial) {| memo, obj | block }  => obj
- *     enum.inject          {| memo, obj | block }  => obj
+ *     enum.inject(initial) {| memo, obj | block }  => memo
+ *     enum.inject          {| memo, obj | block }  => memo
  *
  *  Combines the elements of <i>enum</i> by applying the block to an
  *  accumulator value (<i>memo</i>) and each element in turn. At each


would be useful as it would clarify that the memorized item which gets
the accumulation is the thing that is returned.  

Anyone care to comment?

        Thanks,
        Hugh
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.