Warning
This post was published 44 days ago. The information described in this article may have changed.
let guess: u32 = match guess.trim().parse() {
Ok(num) => num,
Err(_) => continue,
};
this code is from Advanced Types - The Rust Programming Language
4 posts - 3 participants
🏷️ rust_feed