mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-25 23:10:30 +00:00
Compare commits
4 commits
2712061469
...
5734bd6082
Author | SHA1 | Date | |
---|---|---|---|
|
5734bd6082 | ||
|
26cf4989a2 | ||
|
6e60f441e9 | ||
|
74a8c7959f |
2 changed files with 1 additions and 2 deletions
|
@ -19,7 +19,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn yummy_food() {
|
fn yummy_food() {
|
||||||
// This means that calling `picky_eater` with the argument "food" should return "Yummy!".
|
// This means that calling `picky_eater` with the argument "strawberry" should return "Yummy!".
|
||||||
assert_eq!(picky_eater("strawberry"), "Yummy!");
|
assert_eq!(picky_eater("strawberry"), "Yummy!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
|
||||||
let a = [10, 20, 30, 40]; // Array
|
let a = [10, 20, 30, 40]; // Array
|
||||||
|
|
||||||
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
|
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
|
||||||
// Use the vector macro.
|
|
||||||
// let v = ???;
|
// let v = ???;
|
||||||
|
|
||||||
(a, v)
|
(a, v)
|
||||||
|
|
Loading…
Reference in a new issue