proc.c: [DOC] fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6ecafe0c98
commit
4113b30356
4
proc.c
4
proc.c
@ -3386,8 +3386,8 @@ rb_method_compose_to_right(VALUE self, VALUE g)
|
||||
* ["Bob", "Jane"].map(&hi) #=> ["Hi, Bob!", "Hi, Jane!"]
|
||||
* ["Bob", "Jane"].map(&hey) #=> ["Hey, Bob!", "Hey, Jane!"]
|
||||
*
|
||||
* Of Ruby the core classes, this method is implemented by Symbol,
|
||||
* Method and Hash.
|
||||
* Of the Ruby core classes, this method is implemented by Symbol,
|
||||
* Method, and Hash.
|
||||
*
|
||||
* :to_s.to_proc.call(1) #=> "1"
|
||||
* [1, 2].map(&:to_s) #=> ["1", "2"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user