X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/29958c0fd33c5e714b52bed79a1832113c43b8d8..ee5a849f625d3bd9bd9bb661428d1c051f285ebe:/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!() },