Skip to content

Commit ba0cfc7

Browse files
committed
Auto merge of rust-lang#7867 - dswij:utils-typo, r=llogiq
Fix typo on utils/lib Found some typo when looking through `clippy_utils/src/lib.rs` 🙂 changelog: none
2 parents df65291 + a5a3e61 commit ba0cfc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_utils/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ pub fn is_default_equivalent(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
712712
/// Checks if the top level expression can be moved into a closure as is.
713713
/// Currently checks for:
714714
/// * Break/Continue outside the given loop HIR ids.
715-
/// * Yield/Return statments.
715+
/// * Yield/Return statements.
716716
/// * Inline assembly.
717717
/// * Usages of a field of a local where the type of the local can be partially moved.
718718
///
@@ -2123,7 +2123,7 @@ pub fn is_in_test_function(tcx: TyCtxt<'_>, id: hir::HirId) -> bool {
21232123
vis.found
21242124
}
21252125

2126-
/// Checks whether item either has `test` attribute appelied, or
2126+
/// Checks whether item either has `test` attribute applied, or
21272127
/// is a module with `test` in its name.
21282128
///
21292129
/// Note: If you use this function, please add a `#[test]` case in `tests/ui_test`.

0 commit comments

Comments
 (0)