This commit is contained in:
young 2022-11-05 18:08:03 +09:00
parent b17295b36f
commit 2ffb454b12

View File

@ -16,7 +16,11 @@ trait AppendBar {
}
impl AppendBar for String {
//Add your code here
fn append_bar(self) -> Self {
let mut _string = self.clone();
_string.push_str("Bar");
return _string;
}
}
fn main() {