X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/4f61be32dd480f23a7fef05ee66c42ae27c980c6..55dd9d13e5bce24c6deda1c8fbb5a919da1d0f42:/workspace/src/part03.rs diff --git a/workspace/src/part03.rs b/workspace/src/part03.rs index 08cca72..d1aea31 100644 --- a/workspace/src/part03.rs +++ b/workspace/src/part03.rs @@ -1,5 +1,3 @@ -// ***Remember to enable/add this part in `main.rs`!*** - // Rust-101, Part 03: Input // ======================== @@ -17,7 +15,7 @@ fn read_vec() -> Vec { println!("Enter a list of numbers, one per line. End with Ctrl-D."); for line in stdin.lock().lines() { // Rust's type for (dynamic, growable) strings is `String`. However, our variable `line` - // here is not yet of that type: It rather has type `io::Result`. + // here is not yet of that type: It has type `io::Result`. // I chose the same name (`line`) for the new variable to ensure that I will never, accidentally, // access the "old" `line` again.