File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ func aboutArrays() {
15
15
16
16
assert (fruits == [4 ]string {}) // comparing arrays is not like comparing apples and oranges
17
17
18
- tasty_fruits := fruits [1 :3 ] // defining oneself as a variation of another
19
- assert (fmt .Sprintf ("%T" , tasty_fruits ) == __string__ ) //and get not a simeple array as a result
20
- assert (tasty_fruits [0 ] == __string__ ) // slices of arrays share some data
21
- assert (tasty_fruits [1 ] == __string__ ) // albeit slightly askewed
18
+ tasty_fruits := fruits [1 :3 ] // defining oneself as a variation of another
19
+ assert (fmt .Sprintf ("%T" , tasty_fruits ) == __string__ ) //and get not a simple array as a result
20
+ assert (tasty_fruits [0 ] == __string__ ) // slices of arrays share some data
21
+ assert (tasty_fruits [1 ] == __string__ ) // albeit slightly askewed
22
22
23
23
assert (len (tasty_fruits ) == __int__ ) // its length is manifest
24
24
assert (cap (tasty_fruits ) == __int__ ) // but its capacity is surprising!
You can’t perform that action at this time.
0 commit comments