mirror of
https://github.com/rust-lang/book.git
synced 2026-11-30 19:54:34 -06:00
rebuild pages at 4dbb8da
This commit is contained in:
@@ -72,7 +72,7 @@
|
||||
connection to run the commands in this chapter, as we’ll be downloading Rust
|
||||
from the internet.</p>
|
||||
<p>We’ll be showing off a number of commands using a terminal, and those lines all
|
||||
start with <code>$</code>. You don't need to type in the <code>$</code>s; they are there to indicate
|
||||
start with <code>$</code>. You don't need to type in the <code>$</code> character; they are there to indicate
|
||||
the start of each command. You’ll see many tutorials and examples around the web
|
||||
that follow this convention: <code>$</code> for commands run as a regular user, and <code>#</code>
|
||||
for commands you should be running as an administrator. Lines that don't start
|
||||
|
||||
@@ -206,7 +206,7 @@ have written this line as <code>std::io::stdin()</code>.</p>
|
||||
<p>This particular function returns an instance of <a href="../std/io/struct.Stdin.html"><code>std::io::Stdin</code></a>,
|
||||
which is a type that represents a handle to the standard input for your
|
||||
terminal.</p>
|
||||
<p>The next part, <code>.read_line(&mut guess)</code>, calls the <a href="../std/io/struct.Stdin.html#method.read_line"><code>readline()</code></a>
|
||||
<p>The next part, <code>.read_line(&mut guess)</code>, calls the <a href="../std/io/struct.Stdin.html#method.read_line"><code>read_line()</code></a>
|
||||
method on the standard input handle to get input from the user. We’re also
|
||||
passing one argument to <code>read_line()</code>: <code>&mut guess</code>.</p>
|
||||
<p>The job of <code>read_line()</code> is to take whatever the user types into standard input
|
||||
|
||||
+2
-2
@@ -96,7 +96,7 @@ issue or send a pull request <a href="https://github.com/rust-lang/book">on GitH
|
||||
connection to run the commands in this chapter, as we’ll be downloading Rust
|
||||
from the internet.</p>
|
||||
<p>We’ll be showing off a number of commands using a terminal, and those lines all
|
||||
start with <code>$</code>. You don't need to type in the <code>$</code>s; they are there to indicate
|
||||
start with <code>$</code>. You don't need to type in the <code>$</code> character; they are there to indicate
|
||||
the start of each command. You’ll see many tutorials and examples around the web
|
||||
that follow this convention: <code>$</code> for commands run as a regular user, and <code>#</code>
|
||||
for commands you should be running as an administrator. Lines that don't start
|
||||
@@ -580,7 +580,7 @@ have written this line as <code>std::io::stdin()</code>.</p>
|
||||
<p>This particular function returns an instance of <a href="../std/io/struct.Stdin.html"><code>std::io::Stdin</code></a>,
|
||||
which is a type that represents a handle to the standard input for your
|
||||
terminal.</p>
|
||||
<p>The next part, <code>.read_line(&mut guess)</code>, calls the <a href="../std/io/struct.Stdin.html#method.read_line"><code>readline()</code></a>
|
||||
<p>The next part, <code>.read_line(&mut guess)</code>, calls the <a href="../std/io/struct.Stdin.html#method.read_line"><code>read_line()</code></a>
|
||||
method on the standard input handle to get input from the user. We’re also
|
||||
passing one argument to <code>read_line()</code>: <code>&mut guess</code>.</p>
|
||||
<p>The job of <code>read_line()</code> is to take whatever the user types into standard input
|
||||
|
||||
Reference in New Issue
Block a user