From eca768b994cb365b91176609f6077f53f7a0b98f Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Wed, 22 Feb 2017 09:33:46 -0500 Subject: [PATCH] Change "import" to "bring into scope" Fixes #460. --- src/ch02-00-guessing-game-tutorial.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ch02-00-guessing-game-tutorial.md b/src/ch02-00-guessing-game-tutorial.md index 8ce70a690..38c7d24ae 100644 --- a/src/ch02-00-guessing-game-tutorial.md +++ b/src/ch02-00-guessing-game-tutorial.md @@ -104,16 +104,17 @@ Listing 2-1: Code to get a guess from the user and print it out 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`): ```rust,ignore use std::io; ``` -By default, Rust imports only a few types into every program in [the -*prelude*][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*][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.