]> git.lizzy.rs Git - rust.git/blob - src/docs/unusual_byte_groupings.txt
[Arithmetic] Consider literals
[rust.git] / src / docs / unusual_byte_groupings.txt
1 ### What it does
2 Warns if hexadecimal or binary literals are not grouped
3 by nibble or byte.
4
5 ### Why is this bad?
6 Negatively impacts readability.
7
8 ### Example
9 ```
10 let x: u32 = 0xFFF_FFF;
11 let y: u8 = 0b01_011_101;
12 ```