mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Change call
This commit is contained in:
parent
33921c9e6c
commit
602dbf5267
@ -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) //
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user