diff --git a/examples/array_structs.reid b/examples/array_structs.reid index b7f9e94..e94fc0d 100644 --- a/examples/array_structs.reid +++ b/examples/array_structs.reid @@ -16,6 +16,9 @@ fn test() -> Test { fn main() -> u32 { let mut value = test(); + let beep = [2, 3, 4]; + let boop = 3; + let mut a = &mut value; *a.second[2] = 5; diff --git a/examples/loops.reid b/examples/loops.reid index ea9e679..65cef42 100644 --- a/examples/loops.reid +++ b/examples/loops.reid @@ -9,8 +9,8 @@ fn main() -> u32 { for i in 0 .. 15 { let mut text = from_str("num: "); add_num_to_str(&mut text, i); - print(&text); - free_string(&mut text); + print(text); + free_string(&text); } let mut num = 0; diff --git a/examples/std_test.reid b/examples/std_test.reid index 1cc60a8..d73e1c7 100644 --- a/examples/std_test.reid +++ b/examples/std_test.reid @@ -6,7 +6,7 @@ import std::int_div; fn main() -> i32 { let hello = from_str("hello world"); - print(&hello); + print(hello); return int_div(15, 5).quotient; }