diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-05-30 09:44:50 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-30 09:44:50 +0000 |
| commit | 10ec6fcfc52034053ece3f91c4727adb32832494 (patch) | |
| tree | 9692731bab5019cf96c5a38a96ae5013220c64da | |
| parent | af5b6e8c8e5d5fc86eacb726886d98e1712d60ed (diff) | |
| parent | b283ea3591d1c8a5ff06deaad7bf0284292d6eaf (diff) | |
| download | rust-10ec6fcfc52034053ece3f91c4727adb32832494.tar.gz rust-10ec6fcfc52034053ece3f91c4727adb32832494.zip | |
Correct code comments (#14920)
Correct comments. changelog: none
| -rw-r--r-- | clippy_lints/src/methods/unnecessary_to_owned.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/methods/unnecessary_to_owned.rs b/clippy_lints/src/methods/unnecessary_to_owned.rs index 29a0d2950bc..188f96f8b5b 100644 --- a/clippy_lints/src/methods/unnecessary_to_owned.rs +++ b/clippy_lints/src/methods/unnecessary_to_owned.rs @@ -44,7 +44,7 @@ pub fn check<'tcx>( return; } // At this point, we know the call is of a `to_owned`-like function. The functions - // `check_addr_of_expr` and `check_call_arg` determine whether the call is unnecessary + // `check_addr_of_expr` and `check_into_iter_call_arg` determine whether the call is unnecessary // based on its context, that is, whether it is a referent in an `AddrOf` expression, an // argument in a `into_iter` call, or an argument in the call of some other function. if check_addr_of_expr(cx, expr, method_name, method_def_id, receiver) { |
