mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-07 10:13:31 +02:00
Progress: finished primitive types, vecs, movesematics. progress structs
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
fn elems_to_vec(a: i32, b: i32, c: i32) -> Vec<i32> {
|
||||
// TODO: Return a vector containing the elements a, b and c (in this order).
|
||||
// Use the "vec!" macro.
|
||||
let vector: Vec<i32> = vec![a, b, c];
|
||||
vector
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
Reference in New Issue
Block a user