summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2022-07-18 10:47:35 +0200
committerGitHub <noreply@github.com>2022-07-18 10:47:35 +0200
commitd46a97ef97f8cca17932e1eb9b21979456628f21 (patch)
tree805b90edea056daf543845742c3459634f8ddebf
parent8a0c6cfcfa9195c6320a7141c567a67dd46fbe82 (diff)
parent7035d6787cd551ece7d582d052685c52875a6a72 (diff)
Merge pull request #1076 from Tostapunk/main
fix(traits5.rs): wrong line number
-rw-r--r--exercises/traits/traits5.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/traits/traits5.rs b/exercises/traits/traits5.rs
index 290c047..89174dd 100644
--- a/exercises/traits/traits5.rs
+++ b/exercises/traits/traits5.rs
@@ -1,7 +1,7 @@
// traits5.rs
//
// Your task is to replace the '??' sections so the code compiles.
-// Don't change any line other than 27.
+// Don't change any line other than the marked one.
// Execute `rustlings hint traits5` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
@@ -25,6 +25,7 @@ struct SomeStruct {
impl SomeTrait for SomeStruct {}
impl OtherTrait for SomeStruct {}
+// YOU MAY ONLY CHANGE THE NEXT LINE
fn some_func(item: ??) -> bool {
item.some_function() && item.other_function()
}