]> git.lizzy.rs Git - rust.git/blob - src/docs/float_arithmetic.txt
Auto merge of #9421 - xphoniex:fix-#9420, r=giraffate
[rust.git] / src / docs / float_arithmetic.txt
1 ### What it does
2 Checks for float arithmetic.
3
4 ### Why is this bad?
5 For some embedded systems or kernel development, it
6 can be useful to rule out floating-point numbers.
7
8 ### Example
9 ```
10 a + 1.0;
11 ```