diff options
| author | Emmanuel Roullit <eroullit@github.com> | 2023-02-25 17:11:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-25 17:11:43 +0100 |
| commit | fcadbfc70d578e4a993711d5a7f1737aebd6b3ce (patch) | |
| tree | 897142c1904755a43aefce56695c0b8186381e69 /exercises/traits | |
| parent | b653d4848a52701d2240f130ab74c158dd5d7069 (diff) | |
| parent | 701b4bef51b50d1fd3bb7fbfe3cc274f2bbdcb0c (diff) | |
Merge branch 'rust-lang:main' into codespaces
Diffstat (limited to 'exercises/traits')
| -rw-r--r-- | exercises/traits/traits1.rs | 4 | ||||
| -rw-r--r-- | exercises/traits/traits2.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/exercises/traits/traits1.rs b/exercises/traits/traits1.rs index 5b9d8d5..f5320a5 100644 --- a/exercises/traits/traits1.rs +++ b/exercises/traits/traits1.rs @@ -2,7 +2,7 @@ // Time to implement some traits! // // Your task is to implement the trait -// `AppendBar' for the type `String'. +// `AppendBar` for the type `String`. // // The trait AppendBar has only one function, // which appends "Bar" to any object @@ -16,7 +16,7 @@ trait AppendBar { } impl AppendBar for String { - //Add your code here + // TODO: Implement `AppendBar` for type `String`. } fn main() { diff --git a/exercises/traits/traits2.rs b/exercises/traits/traits2.rs index 708bb19..288b498 100644 --- a/exercises/traits/traits2.rs +++ b/exercises/traits/traits2.rs @@ -1,7 +1,7 @@ // traits2.rs // // Your task is to implement the trait -// `AppendBar' for a vector of strings. +// `AppendBar` for a vector of strings. // // To implement this trait, consider for // a moment what it means to 'append "Bar"' @@ -17,7 +17,7 @@ trait AppendBar { fn append_bar(self) -> Self; } -//TODO: Add your code here +// TODO: Implement trait `AppendBar` for a vector of strings. #[cfg(test)] mod tests { |
