]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/src/docs/unicode_not_nfc.txt
Auto merge of #104673 - matthiaskrgr:rollup-85f65ov, r=matthiaskrgr
[rust.git] / src / tools / clippy / src / docs / unicode_not_nfc.txt
1 ### What it does
2 Checks for string literals that contain Unicode in a form
3 that is not equal to its
4 [NFC-recomposition](http://www.unicode.org/reports/tr15/#Norm_Forms).
5
6 ### Why is this bad?
7 If such a string is compared to another, the results
8 may be surprising.
9
10 ### Example
11 You may not see it, but "à"" and "à"" aren't the same string. The
12 former when escaped is actually `"a\u{300}"` while the latter is `"\u{e0}"`.