[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66422] [ruby-trunk - Bug #10536] [Rejected] RubyDoc example for Enumerable#map incorrect
From:
nobu@...
Date:
2014-11-23 01:02:22 UTC
List:
ruby-core #66422
Issue #10536 has been updated by Nobuyoshi Nakada.
Description updated
Status changed from Open to Rejected
----------------------------------------
Bug #10536: RubyDoc example for Enumerable#map incorrect
https://bugs.ruby-lang.org/issues/10536#change-50056
* Author: Eric Ebbesen
* Status: Rejected
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: 2.0, 2.1.0
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
`collect` is shown in the example section instead of `map`
This is fully the case for the 2.0 doc (http://ruby-doc.org/core-2.0/Enumerable.html#method-i-map) and partially the case for the 2.1 doc (http://ruby-doc.org/core-2.1.0/Enumerable.html#method-i-map).
For example, from http://ruby-doc.org/core-2.1.0/Enumerable.html#method-i-map:
~~~ruby
(1..4).map { |i| i*i } #=> [1, 4, 9, 16]
(1..4).collect { "cat" } #=> ["cat", "cat", "cat", "cat"]
~~~
--
https://bugs.ruby-lang.org/