Fix two examples, break one

This commit is contained in:
Sofia 2025-07-23 23:06:18 +03:00
parent aeca557b6f
commit f6ed39d4e5
3 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
}