diff options
| author | ratijas <me@ratijas.tk> | 2020-05-24 14:46:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-24 14:46:50 +0300 |
| commit | d1f4796845d6a1ce00367a3f8af2bb11790687f9 (patch) | |
| tree | 8d209169c354a24535de047812a3a44b8e712ef7 | |
| parent | 52b605c8cb2f730e607de0777a694cd1b9bb3e15 (diff) | |
| download | rust-d1f4796845d6a1ce00367a3f8af2bb11790687f9.tar.gz rust-d1f4796845d6a1ce00367a3f8af2bb11790687f9.zip | |
Use `dyn` trait syntax in more comments and docs
Probably missed it out during earlier `dyn` refactoring.
| -rw-r--r-- | src/libcore/raw.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/raw.rs b/src/libcore/raw.rs index cb0fb8795e5..741a9dc8797 100644 --- a/src/libcore/raw.rs +++ b/src/libcore/raw.rs @@ -9,15 +9,15 @@ //! Their definition should always match the ABI defined in //! `rustc_middle::ty::layout`. -/// The representation of a trait object like `&SomeTrait`. +/// The representation of a trait object like `&dyn SomeTrait`. /// -/// This struct has the same layout as types like `&SomeTrait` and +/// This struct has the same layout as types like `&dyn SomeTrait` and /// `Box<dyn AnotherTrait>`. /// /// `TraitObject` is guaranteed to match layouts, but it is not the /// type of trait objects (e.g., the fields are not directly accessible -/// on a `&SomeTrait`) nor does it control that layout (changing the -/// definition will not change the layout of a `&SomeTrait`). It is +/// on a `&dyn SomeTrait`) nor does it control that layout (changing the +/// definition will not change the layout of a `&dyn SomeTrait`). It is /// only designed to be used by unsafe code that needs to manipulate /// the low-level details. /// |
