diff options
| author | Ralf Jung <post@ralfj.de> | 2020-05-24 16:51:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-24 16:51:34 +0200 |
| commit | 67b4e2b3719e59604d559b21e6bcd31c8e100133 (patch) | |
| tree | f978253398866b08b65ec21f57abac097ab1eb57 /src/libcore | |
| parent | cdeef96267791a82138394843c2076559f24fd42 (diff) | |
| parent | d1f4796845d6a1ce00367a3f8af2bb11790687f9 (diff) | |
| download | rust-67b4e2b3719e59604d559b21e6bcd31c8e100133.tar.gz rust-67b4e2b3719e59604d559b21e6bcd31c8e100133.zip | |
Rollup merge of #72532 - ratijas:dyn-trait-object-doc, r=jonas-schievink
Use `dyn` trait syntax in more comments and docs Probably missed it out during earlier dyn refactoring. 033cbfe#diff-a0ba6bbf82d9ee83a4c9525873f85b04
Diffstat (limited to 'src/libcore')
| -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. /// |
