1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 17:24:29 +02:00

Change call

This commit is contained in:
polazarus
2020-02-12 21:25:39 +01:00
committed by GitHub
parent 33921c9e6c
commit 602dbf5267

View File

@@ -188,7 +188,7 @@ fn main() {
}
let a_foo = Foo { bar: 1 };
println!("{}", a_foo.get_bar()); // 1
println!("{}", a_foo.bar()); // 1
// Traits (known as interfaces or typeclasses in other languages) //