From c7cb754514110d7d245ee2508fb8ccae7e24a420 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 26 Oct 2019 14:37:27 +0100 Subject: [PATCH] Fix typos --- examples/demo/demo.odin | 4 ++-- 1 file 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] } }