Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Enumerable docs (from snapshot).: msg#00001

Subject: Enumerable docs (from snapshot).
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





<Prev in Thread] Current Thread [Next in Thread>