Skip to content

Commit eae6e02

Browse files
committed
Fix a comment
1 parent 34bc571 commit eae6e02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_hir_analysis/src/collect/predicates_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
180180
//
181181
// default impl Foo for Bar { .. }
182182
//
183-
// we add a default where clause `Foo: Bar`. We do a similar thing for traits
183+
// we add a default where clause `Bar: Foo`. We do a similar thing for traits
184184
// (see below). Recall that a default impl is not itself an impl, but rather a
185185
// set of defaults that can be incorporated into another impl.
186186
if let Some(trait_ref) = is_default_impl_trait {

0 commit comments

Comments
 (0)