From 602dbf5267ff15ab137bee2dbedad7f500d039a2 Mon Sep 17 00:00:00 2001 From: polazarus Date: Wed, 12 Feb 2020 21:25:39 +0100 Subject: Change call --- rust.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust.html.markdown') diff --git a/rust.html.markdown b/rust.html.markdown index 83682c01..e835de12 100644 --- a/rust.html.markdown +++ b/rust.html.markdown @@ -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) // -- cgit v1.2.3