diff options
Diffstat (limited to 'src/tools/clippy/src/docs/cmp_nan.txt')
-rw-r--r-- | src/tools/clippy/src/docs/cmp_nan.txt | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/tools/clippy/src/docs/cmp_nan.txt b/src/tools/clippy/src/docs/cmp_nan.txt deleted file mode 100644 index e2ad04d93..000000000 --- a/src/tools/clippy/src/docs/cmp_nan.txt +++ /dev/null @@ -1,16 +0,0 @@ -### What it does -Checks for comparisons to NaN. - -### Why is this bad? -NaN does not compare meaningfully to anything – not -even itself – so those comparisons are simply wrong. - -### Example -``` -if x == f32::NAN { } -``` - -Use instead: -``` -if x.is_nan() { } -```
\ No newline at end of file |