mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 19:32:23 -07:00
Fix typos
This commit is contained in:
@@ -1220,7 +1220,7 @@ ranged_fields_for_array_compound_literals :: proc() {
|
||||
5..9 = 54,
|
||||
10..<16 = i*3 + (i-1)*2,
|
||||
};
|
||||
assert(len(foo) == 16);
|
||||
assert(len(foo_slice) == 16);
|
||||
fmt.println(foo_slice); // [123, 0, 0, 0, 0, 54, 54, 54, 54, 54, 8, 8, 8, 8, 8]
|
||||
|
||||
foo_dynamic_array := [dynamic]int {
|
||||
@@ -1228,7 +1228,7 @@ ranged_fields_for_array_compound_literals :: proc() {
|
||||
5..9 = 54,
|
||||
10..<16 = i*3 + (i-1)*2,
|
||||
};
|
||||
assert(len(foo) == 16);
|
||||
assert(len(foo_dynamic_array) == 16);
|
||||
fmt.println(foo_dynamic_array); // [123, 0, 0, 0, 0, 54, 54, 54, 54, 54, 8, 8, 8, 8, 8]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user