Skip to content

Commit

Permalink
Merge pull request #187 from half2me/patch-1
Browse files Browse the repository at this point in the history
Fix docstring: "when converted to `u8`"
  • Loading branch information
hdoordt authored Oct 29, 2024
2 parents c540242 + 8488317 commit 26e7807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/02_basic_calculator/10_as_casting/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod tests {

// You could solve this by using exactly the same expression as above,
// but that would defeat the purpose of the exercise. Instead, use a genuine
// `i8` value that is equivalent to `255` when converted from `u8`.
// `i8` value that is equivalent to `255` when converted to `u8`.
let y: i8 = todo!();

assert_eq!(x, y);
Expand Down

0 comments on commit 26e7807

Please sign in to comment.