diff options
| author | Cerberuser <computers05@mail.ru> | 2019-10-13 18:48:07 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-13 18:48:07 +0700 |
| commit | cfda050c01bba4a9b2ca9356b317ba22d6da0ca7 (patch) | |
| tree | 029ddf912390198893fe49b994f85c16b1a10576 /src/libsyntax/parse/parser/expr.rs | |
| parent | 29b6e0f0a1d1a37f8dc729484a64e59bf0b9a0a3 (diff) | |
| download | rust-cfda050c01bba4a9b2ca9356b317ba22d6da0ca7.tar.gz rust-cfda050c01bba4a9b2ca9356b317ba22d6da0ca7.zip | |
Add `dyn` to `Any` documentation
I noticed that in documentation to `Any` trait the old trait object syntax is used, which could be confusing for newcomers, since we generally recommend using `dyn Trait` instead of just `Trait`. This PR changes the documentation comment, so that it uses `&dyn Any`, `&mut dyn Any` and `Box<dyn Any>`, correspondingly.
Diffstat (limited to 'src/libsyntax/parse/parser/expr.rs')
0 files changed, 0 insertions, 0 deletions
