mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 23:23:55 +00:00
[ruby/en] fix typo
This commit is contained in:
parent
d9ee9ce390
commit
20a468579a
@ -327,7 +327,7 @@ puts doubled
|
||||
puts array
|
||||
#=> [1,2,3,4,5]
|
||||
|
||||
# another useful sintax is .map(&:method)
|
||||
# another useful syntax is .map(&:method)
|
||||
a = ["FOO", "BAR", "BAZ"]
|
||||
a.map { |s| s.downcase } #=> ["foo", "bar", "baz"]
|
||||
a.map(&:downcase) #=> ["foo", "bar", "baz"]
|
||||
|
Loading…
Reference in New Issue
Block a user