diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-03-27 01:44:03 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2015-03-27 01:44:03 +0200 |
| commit | ce668a873ef8a27e3536f6c981aee364edfe5116 (patch) | |
| tree | 368232a01abb2f9176d41f1965dcc8e335dbd479 | |
| parent | 199bdcfeff5cfafd1f8e8ff583d7209272469879 (diff) | |
| download | rust-ce668a873ef8a27e3536f6c981aee364edfe5116.tar.gz rust-ce668a873ef8a27e3536f6c981aee364edfe5116.zip | |
book: fix typo
| -rw-r--r-- | src/doc/trpl/standard-input.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/trpl/standard-input.md b/src/doc/trpl/standard-input.md index a296e1311e6..38af0c94954 100644 --- a/src/doc/trpl/standard-input.md +++ b/src/doc/trpl/standard-input.md @@ -5,7 +5,8 @@ we haven't seen before. Here's a simple program that reads some input, and then prints it back out: ```{rust,ignore} -corefn main() { +# #![feature(old_io)] +fn main() { println!("Type something!"); let input = std::old_io::stdin().read_line().ok().expect("Failed to read line"); |
