about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-10-23 16:09:45 +0000
committerbors <bors@rust-lang.org>2021-10-23 16:09:45 +0000
commitba0cfc7debaaa68dbd26c9aab101a496afe3db49 (patch)
tree35ba95ea5ac32b1a520d73dadf2f5b116c8e7f6f
parentdf65291edd6b89a241fed483ab165c32df468746 (diff)
parenta5a3e6192dc0c4a5b7b83ff19f074df3cf526338 (diff)
downloadrust-ba0cfc7debaaa68dbd26c9aab101a496afe3db49.tar.gz
rust-ba0cfc7debaaa68dbd26c9aab101a496afe3db49.zip
Auto merge of #7867 - dswij:utils-typo, r=llogiq
Fix typo on utils/lib

Found some typo when looking through `clippy_utils/src/lib.rs` :slightly_smiling_face:

changelog: none
-rw-r--r--clippy_utils/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_utils/src/lib.rs b/clippy_utils/src/lib.rs
index 9bc380ca6ca..aeb8c12ae8b 100644
--- a/clippy_utils/src/lib.rs
+++ b/clippy_utils/src/lib.rs
@@ -712,7 +712,7 @@ pub fn is_default_equivalent(cx: &LateContext<'_>, e: &Expr<'_>) -> bool {
 /// Checks if the top level expression can be moved into a closure as is.
 /// Currently checks for:
 /// * Break/Continue outside the given loop HIR ids.
-/// * Yield/Return statments.
+/// * Yield/Return statements.
 /// * Inline assembly.
 /// * Usages of a field of a local where the type of the local can be partially moved.
 ///
@@ -2123,7 +2123,7 @@ pub fn is_in_test_function(tcx: TyCtxt<'_>, id: hir::HirId) -> bool {
     vis.found
 }
 
-/// Checks whether item either has `test` attribute appelied, or
+/// Checks whether item either has `test` attribute applied, or
 /// is a module with `test` in its name.
 ///
 /// Note: If you use this function, please add a `#[test]` case in `tests/ui_test`.