mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-24 18:11:38 +00:00
Fixes array typos
This commit is contained in:
parent
50e49eced1
commit
ea853dfa67
@ -117,11 +117,11 @@ status == :approved #=> false
|
|||||||
# Arrays
|
# Arrays
|
||||||
|
|
||||||
# This is an array
|
# This is an array
|
||||||
[1, 2, 3, 4, 5] #=> [1, 2, 3, 4, 5]
|
array = [1, 2, 3, 4, 5] #=> [1, 2, 3, 4, 5]
|
||||||
|
|
||||||
# Arrays can contain different types of items
|
# Arrays can contain different types of items
|
||||||
|
|
||||||
array = [1, "hello", false] #=> => [1, "hello", false]
|
[1, "hello", false] #=> [1, "hello", false]
|
||||||
|
|
||||||
# Arrays can be indexed
|
# Arrays can be indexed
|
||||||
# From the front
|
# From the front
|
||||||
|
Loading…
Reference in New Issue
Block a user