Update why transmute_int_to_float is bad

Fix #3550
This commit is contained in:
Eduardo Pinho 2019-02-18 14:14:54 +00:00 committed by GitHub
parent 1620e92dd6
commit 74ac35bcab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -159,7 +159,7 @@ declare_clippy_lint! {
/// **What it does:** Checks for transmutes from an integer to a float.
///
/// **Why is this bad?** This might result in an invalid in-memory representation of a float.
/// **Why is this bad?** Transmutes are dangerous and error-prone, whereas `from_bits` is intuitive and safe.
///
/// **Known problems:** None.
///