about summary refs log tree commit diff
path: root/clippy_utils/src
diff options
context:
space:
mode:
authorJason Newcomb <jsnewcomb@pm.me>2021-04-13 09:30:01 -0400
committerJason Newcomb <jsnewcomb@pm.me>2021-05-12 21:51:19 -0400
commit4713e25ab07badc863fff05fcd5bcf9852cf375e (patch)
tree703b5ed9d8c38988e9783b97980572622d675cda /clippy_utils/src
parentdaca50a515f28218142d9945ca714f7420b4fc75 (diff)
downloadrust-4713e25ab07badc863fff05fcd5bcf9852cf375e.tar.gz
rust-4713e25ab07badc863fff05fcd5bcf9852cf375e.zip
Cleanup of `while_let_on_iterator`
Diffstat (limited to 'clippy_utils/src')
-rw-r--r--clippy_utils/src/visitors.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_utils/src/visitors.rs b/clippy_utils/src/visitors.rs
index ffd15076026..ecdc666b5f6 100644
--- a/clippy_utils/src/visitors.rs
+++ b/clippy_utils/src/visitors.rs
@@ -241,7 +241,7 @@ pub fn visit_break_exprs<'tcx>(
     node.visit(&mut V(f));
 }
 
-/// Checks if the given resolved path is used the body.
+/// Checks if the given resolved path is used in the given body.
 pub fn is_res_used(cx: &LateContext<'_>, res: Res, body: BodyId) -> bool {
     struct V<'a, 'tcx> {
         cx: &'a LateContext<'tcx>,