diff options
| author | gingerBill <bill@gingerbill.org> | 2019-10-26 14:37:27 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2019-10-26 14:37:27 +0100 |
| commit | c7cb754514110d7d245ee2508fb8ccae7e24a420 (patch) | |
| tree | 7e664e879ce9443329743b072436cf005da40fbd /examples | |
| parent | a5e42a046531405e0b8830ae092470c2aa2e67a8 (diff) | |
Fix typos
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo/demo.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index fa970fa43..4d14973f6 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -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] } } |