From a3a961f1fced8ef7e7ee2af2c6816e7c39759d01 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Wed, 22 Feb 2017 16:35:28 +0000 Subject: [PATCH] rebuild pages at eca768b --- ch02-00-guessing-game-tutorial.html | 11 ++++++----- print.html | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/ch02-00-guessing-game-tutorial.html b/ch02-00-guessing-game-tutorial.html index 5e1063db2..b6e580742 100644 --- a/ch02-00-guessing-game-tutorial.html +++ b/ch02-00-guessing-game-tutorial.html @@ -143,13 +143,14 @@ fn main() {

This code contains a lot of information, so let’s go over it bit by bit. To -obtain user input and then print the result as output, we need to import the -io (input/output) library from the standard library (which is known as std):

+obtain user input and then print the result as output, we need to bring the +io (input/output) library into scope. The io library comes from the +standard library (which is known as std):

use std::io;
 
-

By default, Rust imports only a few types into every program in the -prelude. If a type you want to use isn’t in the -prelude, you have to import that type into your program explicitly with a use +

By default, Rust brings only a few types into the scope of every program in +the prelude. If a type you want to use isn’t in the +prelude, you have to bring that type into scope explicitly with a use statement. Using the std::io library provides you with a number of useful io-related features, including the functionality to accept user input.

As you saw in Chapter 1, the main function is the entry point into the diff --git a/print.html b/print.html index 593a09bf3..1f2bbd68d 100644 --- a/print.html +++ b/print.html @@ -519,13 +519,14 @@ fn main() {

This code contains a lot of information, so let’s go over it bit by bit. To -obtain user input and then print the result as output, we need to import the -io (input/output) library from the standard library (which is known as std):

+obtain user input and then print the result as output, we need to bring the +io (input/output) library into scope. The io library comes from the +standard library (which is known as std):

use std::io;
 
-

By default, Rust imports only a few types into every program in the -prelude. If a type you want to use isn’t in the -prelude, you have to import that type into your program explicitly with a use +

By default, Rust brings only a few types into the scope of every program in +the prelude. If a type you want to use isn’t in the +prelude, you have to bring that type into scope explicitly with a use statement. Using the std::io library provides you with a number of useful io-related features, including the functionality to accept user input.

As you saw in Chapter 1, the main function is the entry point into the