mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-26 15:13:56 +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 };
|
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) //
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user