summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorwojexe <21208490+wojexe@users.noreply.github.com>2022-07-16 19:51:50 +0200
committerGitHub <noreply@github.com>2022-07-16 19:51:50 +0200
commitb0e070c743d1f9a4a4eeb5c33a1e9ded8ab9bc12 (patch)
treeeca941154fe7cd8450365ffa10b3771da55b2a40 /exercises
parentab291a1fcd94bc0e213935a8355ed9cf4d62b550 (diff)
fix(traits4.rs): wrong line number
fixes #1067
Diffstat (limited to 'exercises')
-rw-r--r--exercises/traits/traits4.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/exercises/traits/traits4.rs b/exercises/traits/traits4.rs
index 280aaad..6b54166 100644
--- a/exercises/traits/traits4.rs
+++ b/exercises/traits/traits4.rs
@@ -1,7 +1,7 @@
// traits4.rs
//
// Your task is to replace the '??' sections so the code compiles.
-// Don't change any line other than 21.
+// Don't change any line other than the marked one.
// Execute `rustlings hint traits4` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
@@ -19,6 +19,7 @@ struct OtherSoftware {}
impl Licensed for SomeSoftware {}
impl Licensed for OtherSoftware {}
+// YOU MAY ONLY CHANGE THE NEXT LINE
fn compare_license_types(software: ??, software_two: ??) -> bool {
software.licensing_info() == software_two.licensing_info()
}