Project

General

Profile

Bug #4847

Documentation Error for Hash#reject

Added by Michael Edgar almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
ruby -v:
ruby 1.9.2p188 (2011-03-28 revision 31204) [x86_64-darwin10.7.0]
[ruby-core:36800]

Description

The documentation for Hash#reject fails to note that, when called without a block, an enumerator is returned.

A small patch correcting this is attached.

hash.doc.patch Magnifier (408 Bytes) Michael Edgar, 06/07/2011 03:36 AM

Associated revisions

Revision 32238
Added by Yui NARUSE almost 5 years ago

  • hash.c (rb_hash_reject): add documentation that Hash#reject without block returns enumerator. patched by Michael Edgar [Bug #4847]

Revision 32238
Added by Yui NARUSE almost 5 years ago

  • hash.c (rb_hash_reject): add documentation that Hash#reject without block returns enumerator. patched by Michael Edgar [Bug #4847]

Revision 32238
Added by Yui NARUSE almost 5 years ago

  • hash.c (rb_hash_reject): add documentation that Hash#reject without block returns enumerator. patched by Michael Edgar [Bug #4847]

History

#1 [ruby-core:37500] Updated by Yui NARUSE almost 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to Yui NARUSE

#2 [ruby-core:37507] Updated by Hiroshi Nakamura almost 5 years ago

  • Target version set to 1.9.3

#3 Updated by Yui NARUSE almost 5 years ago

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

This issue was solved with changeset r32238.
Michael, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • hash.c (rb_hash_reject): add documentation that Hash#reject without block returns enumerator. patched by Michael Edgar [Bug #4847]

Also available in: Atom PDF