Skip to content

Commit

Permalink
fix doc comment for `ty::Dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr authored Mar 26, 2021
1 parent b8719c5 commit 7ca2c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ pub enum TyKind<'tcx> {
/// ```
FnPtr(PolyFnSig<'tcx>),

/// A trait, defined with `trait`.
/// A trait object. Written as `dyn for<'b> Trait<'b, Assoc = u32> + Send + 'a`.
Dynamic(&'tcx List<Binder<ExistentialPredicate<'tcx>>>, ty::Region<'tcx>),

/// The anonymous type of a closure. Used to represent the type of
Expand Down

0 comments on commit 7ca2c98

Please sign in to comment.