mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 18:13:29 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
// vecs1.rs
|
||||
//
|
||||
// Your task is to create a `Vec` which holds the exact same elements as in the
|
||||
// array `a`.
|
||||
//
|
||||
// Make me compile and pass the test!
|
||||
//
|
||||
// Execute `rustlings hint vecs1` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
fn array_and_vec() -> ([i32; 4], Vec<i32>) {
|
||||
let a = [10, 20, 30, 40]; // a plain array
|
||||
|
||||
Reference in New Issue
Block a user