100-exercises-to-learn-rust
100-exercises-to-learn-rust copied to clipboard
fix typo in comment
Hi @MHMasoon Thanks for helping out! This here's not actually a typo: 255 can't fit in an i8. Do you have any suggestions for improving the wording so it becomes more clear?
Hi @hdoordt,
I just made this comment the same as it is in the "solutions" branch. 255u8 can't fit in an i8 but can be converted to it when #[allow(overflowing_literals)] is used; that's what the comment suggests.
As for making it more clear, I don't have any suggestions, but I think the current version encourages students to explore and find the solution. A more explicit comment might spoon-feed them the answer.