Skip to content

Commit ffaadae

Browse files
ThibsGebroto
andauthored
Update clippy_lints/src/utils/mod.rs
Co-authored-by: Eduardo Broto <[email protected]>
1 parent e8be047 commit ffaadae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ pub fn return_ty<'tcx>(cx: &LateContext<'tcx>, fn_item: hir::HirId) -> Ty<'tcx>
867867
cx.tcx.erase_late_bound_regions(&ret_ty)
868868
}
869869

870-
/// Walk into `ty` and returns `true` if any inner type is the same as `other_ty`
870+
/// Walks into `ty` and returns `true` if any inner type is the same as `other_ty`
871871
pub fn contains_ty(ty: Ty<'_>, other_ty: Ty<'_>) -> bool {
872872
ty.walk().any(|inner| match inner.unpack() {
873873
GenericArgKind::Type(inner_ty) => ty::TyS::same_type(other_ty, inner_ty),

0 commit comments

Comments
 (0)