control flow, primitive types and vectors

This commit is contained in:
2026-01-13 04:19:05 +00:00
parent 505ab3b606
commit 2cd1c84285
19 changed files with 50 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
// TODO: Fix the compiler error in the function without adding any new line.
fn fill_vec(vec: Vec<i32>) -> Vec<i32> {
fn fill_vec(mut vec: Vec<i32>) -> Vec<i32> {
vec.push(88);
vec