Skip to content

Commit

Permalink
Fix has_iter_method documentation (#13867)
Browse files Browse the repository at this point in the history
changelog: none
  • Loading branch information
y21 authored Dec 23, 2024
2 parents b3fadd5 + 1f8ba33 commit 592fd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/ty/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ pub fn should_call_clone_as_function(cx: &LateContext<'_>, ty: Ty<'_>) -> bool {
)
}

/// Returns true if ty has `iter` or `iter_mut` methods
/// If `ty` is known to have a `iter` or `iter_mut` method, returns a symbol representing the type.
pub fn has_iter_method(cx: &LateContext<'_>, probably_ref_ty: Ty<'_>) -> Option<Symbol> {
// FIXME: instead of this hard-coded list, we should check if `<adt>::iter`
// exists and has the desired signature. Unfortunately FnCtxt is not exported
Expand Down

0 comments on commit 592fd34

Please sign in to comment.