[ruby/en] fix typo

This commit is contained in:
Claudio Secco 2020-07-07 20:27:34 -03:00 committed by GitHub
parent d9ee9ce390
commit 20a468579a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]