Skip to content

Commit 592fd34

Browse files
authored
Fix has_iter_method documentation (rust-lang#13867)
changelog: none
2 parents b3fadd5 + 1f8ba33 commit 592fd34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_utils/src/ty/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub fn should_call_clone_as_function(cx: &LateContext<'_>, ty: Ty<'_>) -> bool {
171171
)
172172
}
173173

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

0 commit comments

Comments
 (0)