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:
@@ -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) //
|
||||
|
||||
|
Reference in New Issue
Block a user