summaryrefslogtreecommitdiff
path: root/exercises/15_traits
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/15_traits')
-rw-r--r--exercises/15_traits/traits1.rs5
-rw-r--r--exercises/15_traits/traits2.rs4
-rw-r--r--exercises/15_traits/traits3.rs5
-rw-r--r--exercises/15_traits/traits4.rs5
-rw-r--r--exercises/15_traits/traits5.rs5
5 files changed, 0 insertions, 24 deletions
diff --git a/exercises/15_traits/traits1.rs b/exercises/15_traits/traits1.rs
index c51d3b8..b17c9c6 100644
--- a/exercises/15_traits/traits1.rs
+++ b/exercises/15_traits/traits1.rs
@@ -1,11 +1,6 @@
-// traits1.rs
-//
// Time to implement some traits! Your task is to implement the trait
// `AppendBar` for the type `String`. The trait AppendBar has only one function,
// which appends "Bar" to any object implementing this trait.
-//
-// Execute `rustlings hint traits1` or use the `hint` watch subcommand for a
-// hint.
trait AppendBar {
fn append_bar(self) -> Self;
diff --git a/exercises/15_traits/traits2.rs b/exercises/15_traits/traits2.rs
index 18ebcb0..170779b 100644
--- a/exercises/15_traits/traits2.rs
+++ b/exercises/15_traits/traits2.rs
@@ -1,12 +1,8 @@
-// traits2.rs
-//
// Your task is to implement the trait `AppendBar` for a vector of strings. To
// implement this trait, consider for a moment what it means to 'append "Bar"'
// to a vector of strings.
//
// No boiler plate code this time, you can do this!
-//
-// Execute `rustlings hint traits2` or use the `hint` watch subcommand for a hint.
trait AppendBar {
fn append_bar(self) -> Self;
diff --git a/exercises/15_traits/traits3.rs b/exercises/15_traits/traits3.rs
index 8412afa..9a2365a 100644
--- a/exercises/15_traits/traits3.rs
+++ b/exercises/15_traits/traits3.rs
@@ -1,12 +1,7 @@
-// traits3.rs
-//
// Your task is to implement the Licensed trait for both structures and have
// them return the same information without writing the same function twice.
//
// Consider what you can add to the Licensed trait.
-//
-// Execute `rustlings hint traits3` or use the `hint` watch subcommand for a
-// hint.
pub trait Licensed {
fn licensing_info(&self) -> String;
diff --git a/exercises/15_traits/traits4.rs b/exercises/15_traits/traits4.rs
index 18db0d6..7af30b5 100644
--- a/exercises/15_traits/traits4.rs
+++ b/exercises/15_traits/traits4.rs
@@ -1,11 +1,6 @@
-// traits4.rs
-//
// Your task is to replace the '??' sections so the code compiles.
//
// Don't change any line other than the marked one.
-//
-// Execute `rustlings hint traits4` or use the `hint` watch subcommand for a
-// hint.
pub trait Licensed {
fn licensing_info(&self) -> String {
diff --git a/exercises/15_traits/traits5.rs b/exercises/15_traits/traits5.rs
index f258d32..9a45bb7 100644
--- a/exercises/15_traits/traits5.rs
+++ b/exercises/15_traits/traits5.rs
@@ -1,11 +1,6 @@
-// traits5.rs
-//
// Your task is to replace the '??' sections so the code compiles.
//
// Don't change any line other than the marked one.
-//
-// Execute `rustlings hint traits5` or use the `hint` watch subcommand for a
-// hint.
pub trait SomeTrait {
fn some_function(&self) -> bool {