Compare commits

...

4 commits

Author SHA1 Message Date
Grimace of Despair
5734bd6082
Merge 74a8c7959f into 26cf4989a2 2024-12-13 23:36:08 +01:00
Mo
26cf4989a2
Merge pull request #2173 from JoelMarcey/if2-comment-fix
Some checks failed
Rustlings Tests / clippy (push) Has been cancelled
Rustlings Tests / fmt (push) Has been cancelled
Rustlings Tests / test (macOS-latest) (push) Has been cancelled
Rustlings Tests / test (ubuntu-latest) (push) Has been cancelled
Rustlings Tests / test (windows-latest) (push) Has been cancelled
Rustlings Tests / dev-check (push) Has been cancelled
Web / Build and deploy site and docs (push) Has been cancelled
Fix argument comment in test of if2.rs
2024-12-13 19:48:16 +01:00
Joel Marcey
6e60f441e9
Fix argument comment in test of if2.rs 2024-12-13 10:44:21 -08:00
Grimace of Despair
74a8c7959f
Do not suggest vec macro for vecs1.rs
The solution uses the to_vec function rather than the vec macro
2024-12-02 04:12:18 +01:00
2 changed files with 1 additions and 2 deletions

View file

@ -19,7 +19,7 @@ mod tests {
#[test]
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!");
}

View file

@ -2,7 +2,6 @@ fn array_and_vec() -> ([i32; 4], Vec<i32>) {
let a = [10, 20, 30, 40]; // Array
// TODO: Create a vector called `v` which contains the exact same elements as in the array `a`.
// Use the vector macro.
// let v = ???;
(a, v)