From 4ee6006e8cc30dc8c9fdbf10f5388a4c2f2d3f89 Mon Sep 17 00:00:00 2001 From: Pradeep Chauhan Date: Sat, 25 Jul 2020 20:19:35 +0530 Subject: [PATCH] Fix typos --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7eb0cc9..fe490d1 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,7 @@ fn main() { } ``` -The ```{}``` in ```println!``` means "put the variable inside here". This prints ```Hello world number 8```. +The ```{}``` in ```println!``` means "put the variable inside here". This prints ```Hello world number 8!```. We can put more in: @@ -325,7 +325,7 @@ Now let's create the function. ```rust fn main() { - println!("Hello, world number {}", number()); + println!("Hello, world number {}!", number()); } fn number() -> i32 { @@ -1110,7 +1110,7 @@ fn main() { // No problem, because my_number is copy type! } -prints_number(number: i32) { // No return with -> +fn prints_number(number: i32) { // No return with -> // If number was not copy type, it would take it // and we couldn't use it again println!("{}", number);