Skip to content

Commit

Permalink
fix doc error about #[deny(overflowing_literals)]
Browse files Browse the repository at this point in the history
  • Loading branch information
bytesnail committed Apr 2, 2019
1 parent ee00a08 commit ab2767a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ impl Builder {
/// assert_eq!(0b0000_1100 >> 2, 0b0000_0011);
///
/// // Sign Extended Right Shift
/// #![allow(overflowing_literals)]
/// assert_eq!(0b0100_0000i8 >> 2, 0b0001_0000);
/// assert_eq!(0b1110_0000i8 >> 1, 0b1111_0000);
/// assert_eq!(0b1100_0000i8 >> 2, 0b1111_0000);
Expand Down

0 comments on commit ab2767a

Please sign in to comment.