Project

General

Profile

Actions

Bug #4392

closed

Typo in enum.c

Added by gaku (Gaku Ueda) almost 12 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.3dev (2011-02-11 trunk 30840) [x86_64-darwin10.6.0]
Backport:
[ruby-core:35216]

Description

=begin
I found a small typo in enum.c source file.

diff --git a/enum.c b/enum.c
index 823d111..584b838 100644
--- a/enum.c
+++ b/enum.c
@@ -537,7 +537,7 @@ inject_op_i(VALUE i, VALUE p, int argc, VALUE *argv)

  • will be passed to the named method of memo.
  • In either case, the result becomes the new value for memo.
  • At the end of the iteration, the final value of memo is the
    • return value fo the method.
    • return value for the method.
    • If you do not explicitly specify an initial value for memo,
    • then uses the first element of collection is used as the initial value
      =end
Actions #1

Updated by matz (Yukihiro Matsumoto) almost 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r30857.
Gaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in
    [ruby-core:35216].
    =end
Actions

Also available in: Atom PDF

Like0
Like0