Skip to content

Commit

Permalink
Merge pull request #1162 from SOF3/patch-1
Browse files Browse the repository at this point in the history
Added `dyn` to Type::TraitObject docs
  • Loading branch information
dtolnay authored Apr 23, 2022
2 parents a94fde5 + 8c3684e commit 15c9e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ast_enum_of_structs! {
/// A dynamically sized slice type: `[T]`.
Slice(TypeSlice),

/// A trait object type `Bound1 + Bound2 + Bound3` where `Bound` is a
/// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a
/// trait or a lifetime.
TraitObject(TypeTraitObject),

Expand Down Expand Up @@ -244,7 +244,7 @@ ast_struct! {
}

ast_struct! {
/// A trait object type `Bound1 + Bound2 + Bound3` where `Bound` is a
/// A trait object type `dyn Bound1 + Bound2 + Bound3` where `Bound` is a
/// trait or a lifetime.
///
/// *This type is available only if Syn is built with the `"derive"` or
Expand Down

0 comments on commit 15c9e94

Please sign in to comment.