mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-08 02:33:31 +02:00
Clean up and unify exercises
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user