summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/src/docs/unusual_byte_groupings.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/src/docs/unusual_byte_groupings.txt')
-rw-r--r--src/tools/clippy/src/docs/unusual_byte_groupings.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tools/clippy/src/docs/unusual_byte_groupings.txt b/src/tools/clippy/src/docs/unusual_byte_groupings.txt
new file mode 100644
index 000000000..9a1f132a6
--- /dev/null
+++ b/src/tools/clippy/src/docs/unusual_byte_groupings.txt
@@ -0,0 +1,12 @@
+### What it does
+Warns if hexadecimal or binary literals are not grouped
+by nibble or byte.
+
+### Why is this bad?
+Negatively impacts readability.
+
+### Example
+```
+let x: u32 = 0xFFF_FFF;
+let y: u8 = 0b01_011_101;
+``` \ No newline at end of file