diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2021-04-13 09:30:01 -0400 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2021-05-12 21:51:19 -0400 |
| commit | 4713e25ab07badc863fff05fcd5bcf9852cf375e (patch) | |
| tree | 703b5ed9d8c38988e9783b97980572622d675cda /clippy_utils/src | |
| parent | daca50a515f28218142d9945ca714f7420b4fc75 (diff) | |
| download | rust-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.rs | 2 |
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>, |
