X-Git-Url: https://git.ralfj.de/rust-101.git/blobdiff_plain/29958c0fd33c5e714b52bed79a1832113c43b8d8..bbd22a3d23af1ea8186c7a3bf733a07ba1f8ff70:/workspace/src/part03.rs?ds=inline 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!() },