Auto merge of #11058 - Centri3:typos, r=xFrednet
Fix typos Just a couple misc typos I found changelog: none
This commit is contained in:
commit
1990b72e8a
14 changed files with 22 additions and 20 deletions
|
|
@ -11,7 +11,8 @@ use rustc_span::symbol::sym;
|
|||
use super::MAP_UNWRAP_OR;
|
||||
|
||||
/// lint use of `map().unwrap_or_else()` for `Option`s and `Result`s
|
||||
/// Return true if lint triggered
|
||||
///
|
||||
/// Returns true if the lint was emitted
|
||||
pub(super) fn check<'tcx>(
|
||||
cx: &LateContext<'tcx>,
|
||||
expr: &'tcx hir::Expr<'_>,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ declare_clippy_lint! {
|
|||
/// ### Example
|
||||
/// ```rust,ignore
|
||||
/// for m in movies {
|
||||
/// let title = m.t;
|
||||
/// let title = m.t;
|
||||
/// }
|
||||
/// ```
|
||||
/// Use instead:
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ impl EarlyLintPass for NeedlessElse {
|
|||
cx,
|
||||
NEEDLESS_ELSE,
|
||||
span,
|
||||
"this else branch is empty",
|
||||
"this `else` branch is empty",
|
||||
"you can remove it",
|
||||
String::new(),
|
||||
Applicability::MachineApplicable,
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ define_Conf! {
|
|||
/// Lint: DISALLOWED_NAMES.
|
||||
///
|
||||
/// The list of disallowed names to lint about. NB: `bar` is not here since it has legitimate uses. The value
|
||||
/// `".."` can be used as part of the list to indicate, that the configured values should be appended to the
|
||||
/// `".."` can be used as part of the list to indicate that the configured values should be appended to the
|
||||
/// default configuration of Clippy. By default, any configuration will replace the default value.
|
||||
(disallowed_names: Vec<String> = super::DEFAULT_DISALLOWED_NAMES.iter().map(ToString::to_string).collect()),
|
||||
/// Lint: SEMICOLON_INSIDE_BLOCK.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue