Skip to content

Commit 43cb610

Browse files
authored
update comment on trait objects
1 parent 381187d commit 43cb610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/variance/constraints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl<'a, 'tcx> ConstraintContext<'a, 'tcx> {
253253
}
254254

255255
ty::Dynamic(data, r, _) => {
256-
// The type `Foo<T + 'a>` is covariant w/r/t `'a`:
256+
// The type `dyn Trait<T> +'a` is covariant w/r/t `'a`:
257257
self.add_constraints_from_region(current, r, variance);
258258

259259
if let Some(poly_trait_ref) = data.principal() {

0 commit comments

Comments
 (0)