improve lint doc text

This commit is contained in:
Marijn Schouten 2025-07-08 14:47:00 +00:00
parent 2783fc43fd
commit 43bc40f113

View file

@ -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"