1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-12 01:34:19 +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 }; 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) // // Traits (known as interfaces or typeclasses in other languages) //