X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/cb170f41304c809a22de172621845e637e28b8d2..7b5af93d756464638204b0b703485712d88d3656:/workspace/src/part03.rs diff --git a/workspace/src/part03.rs b/workspace/src/part03.rs index d1aea31..5a5327c 100644 --- a/workspace/src/part03.rs +++ b/workspace/src/part03.rs @@ -22,7 +22,7 @@ fn read_vec() -> Vec { let line = line.unwrap(); // Now that we have our `String`, we want to make it an `i32`. - match line.parse::() { + match line.trim().parse::() { Ok(num) => { unimplemented!() },