rustlings vec primitive types

This commit is contained in:
2026-06-12 12:05:51 +02:00
parent 7b26706218
commit 85c0fb50cb
215 changed files with 4435 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
// TODO: Fix the function body without changing the signature.
fn square(num: i32) -> i32 {
num * num
}
fn main() {
let answer = square(3);
println!("The square of 3 is {}", answer);
}