Updated 'src/advanced_features/traits.md'.

This commit is contained in:
Hector PENG
2026-04-24 09:31:09 +08:00
parent c9e90db3eb
commit 699eacb46f
2 changed files with 10 additions and 11 deletions

View File

@@ -9,5 +9,5 @@ impl fmt::Display for Wrapper {
}
fn main() {
let w = Wrapper(vec! [String::from("你好"), String::from("世界")]);
println! ("w = {}", w);
println! ("w = {w}");
}