Skip to content

Commit f9a1a1f

Browse files
Fix a typo in derive.rs comment (#14529)
changelog: none
2 parents 0ca62d1 + 6f0f22c commit f9a1a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ fn ty_implements_eq_trait<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>, eq_trait_id: De
481481
tcx.non_blanket_impls_for_ty(eq_trait_id, ty).next().is_some()
482482
}
483483

484-
/// Creates the `ParamEnv` used for the give type's derived `Eq` impl.
484+
/// Creates the `ParamEnv` used for the given type's derived `Eq` impl.
485485
fn typing_env_for_derived_eq(tcx: TyCtxt<'_>, did: DefId, eq_trait_id: DefId) -> ty::TypingEnv<'_> {
486486
// Initial map from generic index to param def.
487487
// Vec<(param_def, needs_eq)>

0 commit comments

Comments
 (0)