Skip to content

Commit

Permalink
Added dyn to Type::TraitObject docs
Browse files Browse the repository at this point in the history
The old syntax is now a compile error, and it makes it difficult for users to search when they are looking for the keyword "dyn" on the documentation.
  • Loading branch information
SOF3 authored Apr 23, 2022
1 parent a94fde5 commit 8c3684e
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 8c3684e

Please sign in to comment.