From a55537d3bd3aa006291de79ac5d0f9a87f8fc765 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Tue, 16 Aug 2016 14:03:14 +0000 Subject: [PATCH] rebuild pages at 99421b0 --- ch02-00-guessing-game-tutorial.html | 10 +++++----- print.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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,