improve lint doc text
This commit is contained in:
parent
2783fc43fd
commit
43bc40f113
1 changed files with 4 additions and 5 deletions
|
|
@ -59,8 +59,7 @@ declare_lint! {
|
|||
}
|
||||
|
||||
declare_lint! {
|
||||
/// The `overflowing_literals` lint detects literal out of range for its
|
||||
/// type.
|
||||
/// The `overflowing_literals` lint detects literals out of range for their type.
|
||||
///
|
||||
/// ### Example
|
||||
///
|
||||
|
|
@ -72,9 +71,9 @@ declare_lint! {
|
|||
///
|
||||
/// ### Explanation
|
||||
///
|
||||
/// It is usually a mistake to use a literal that overflows the type where
|
||||
/// it is used. Either use a literal that is within range, or change the
|
||||
/// type to be within the range of the literal.
|
||||
/// It is usually a mistake to use a literal that overflows its type
|
||||
/// Change either the literal or its type such that the literal is
|
||||
/// within the range of its type.
|
||||
OVERFLOWING_LITERALS,
|
||||
Deny,
|
||||
"literal out of range for its type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue