File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ print(strings[-3]) // "foo"
36
36
37
37
If we try to access an element beyond the length of the array, we'll get an ` IndexOutOfBounds ` error.
38
38
39
- ## Updaing Arrays
39
+ ## Updating Arrays
40
40
41
- One of the major benefits arrays have is the ability to change the values it contains. We can update an array's values like so:
41
+ One of the major benefits of an array is the ability to change the values it contains. We can update an array's values like so:
42
42
43
43
``` grain
44
44
let strings = [> "foo", "bar", "baz"]
@@ -84,7 +84,7 @@ Lists are excellent because they're
84
84
85
85
Lists might not be the right choice because they're
86
86
87
- - unable to be modified
87
+ - unable to be modified in place
88
88
- inefficient at accessing random elements
89
89
- inefficient at determining the number of elements
90
90
You can’t perform that action at this time.
0 commit comments