Skip to content

Commit 10ec6fc

Browse files
Correct code comments (#14920)
Correct comments. changelog: none
2 parents af5b6e8 + b283ea3 commit 10ec6fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/unnecessary_to_owned.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ pub fn check<'tcx>(
4444
return;
4545
}
4646
// At this point, we know the call is of a `to_owned`-like function. The functions
47-
// `check_addr_of_expr` and `check_call_arg` determine whether the call is unnecessary
47+
// `check_addr_of_expr` and `check_into_iter_call_arg` determine whether the call is unnecessary
4848
// based on its context, that is, whether it is a referent in an `AddrOf` expression, an
4949
// argument in a `into_iter` call, or an argument in the call of some other function.
5050
if check_addr_of_expr(cx, expr, method_name, method_def_id, receiver) {

0 commit comments

Comments
 (0)