diff --git a/ch02-00-guessing-game-tutorial.html b/ch02-00-guessing-game-tutorial.html index 08ba62654..bac7bd28e 100644 --- a/ch02-00-guessing-game-tutorial.html +++ b/ch02-00-guessing-game-tutorial.html @@ -183,7 +183,7 @@ a new value of some kind.
the first:io::stdin()
-Remember how we used std::io on the first line of the program? We’re now
+
Remember how we said use std::io; on the first line of the program? We’re now
calling an associated function on it. If we didn’t use std::io, we could
have written this line as std::io::stdin().
This particular function returns a handle to the standard input for your @@ -461,10 +461,10 @@ use that type:
Ordering::Equal => println!("You win!"), } -The cmp() method can be called on anything that can be compared, and it
-takes a reference to the thing you want to compare it to. It returns the
-Ordering type we used earlier. We use a match statement to
-determine exactly what kind of Ordering it is. Ordering is an
+
The cmp() method can be called on anything that can be compared, and it takes
+a reference to the thing you want to compare it to. It returns the Ordering
+type we imported with the use statement earlier. We use a match
+statement to determine exactly what kind of Ordering it is. Ordering is an
enum, short for ‘enumeration’, which looks like this:
enum Foo {
Bar,
diff --git a/print.html b/print.html
index f339339a0..d53ec4b2d 100644
--- a/print.html
+++ b/print.html
@@ -531,7 +531,7 @@ a new value of some kind.
the first:
io::stdin()
-Remember how we used std::io on the first line of the program? We’re now
+
Remember how we said use std::io; on the first line of the program? We’re now
calling an associated function on it. If we didn’t use std::io, we could
have written this line as std::io::stdin().
This particular function returns a handle to the standard input for your
@@ -809,10 +809,10 @@ use that type:
Ordering::Equal => println!("You win!"),
}
-The cmp() method can be called on anything that can be compared, and it
-takes a reference to the thing you want to compare it to. It returns the
-Ordering type we used earlier. We use a match statement to
-determine exactly what kind of Ordering it is. Ordering is an
+
The cmp() method can be called on anything that can be compared, and it takes
+a reference to the thing you want to compare it to. It returns the Ordering
+type we imported with the use statement earlier. We use a match
+statement to determine exactly what kind of Ordering it is. Ordering is an
enum, short for ‘enumeration’, which looks like this:
enum Foo {
Bar,