mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 15:51:41 +03:00
Fix typo
This commit is contained in:
parent
928edf1209
commit
82cb669cd7
@ -285,7 +285,7 @@ hash.each do |key, value|
|
||||
puts "#{key} is #{value}"
|
||||
end
|
||||
|
||||
# If you still need and index you can use "each_with_index" and define an index
|
||||
# If you still need an index you can use "each_with_index" and define an index
|
||||
# variable
|
||||
array.each_with_index do |element, index|
|
||||
puts "#{element} is number #{index} in the array"
|
||||
|
Loading…
Reference in New Issue
Block a user