diff options
| author | Corey Farwell <coreyf@rwell.org> | 2018-11-20 09:34:15 -0500 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2018-11-20 09:35:03 -0500 |
| commit | 033cbfec4d3bb23948a99379f8d63b7cfe5eed45 (patch) | |
| tree | dafb092e141350a043f38234e513ff1de69cbee0 /src/liballoc/rc.rs | |
| parent | 7a0cef74a8b859184b46d7ae6f7e01367fab5fb0 (diff) | |
| download | rust-033cbfec4d3bb23948a99379f8d63b7cfe5eed45.tar.gz rust-033cbfec4d3bb23948a99379f8d63b7cfe5eed45.zip | |
Incorporate `dyn` into more comments and docs.
Diffstat (limited to 'src/liballoc/rc.rs')
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index bb52d7990ff..12c19912662 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -634,7 +634,7 @@ impl<T: Clone> Rc<T> { impl Rc<dyn Any> { #[inline] #[stable(feature = "rc_downcast", since = "1.29.0")] - /// Attempt to downcast the `Rc<Any>` to a concrete type. + /// Attempt to downcast the `Rc<dyn Any>` to a concrete type. /// /// # Examples /// @@ -642,7 +642,7 @@ impl Rc<dyn Any> { /// use std::any::Any; /// use std::rc::Rc; /// - /// fn print_if_string(value: Rc<Any>) { + /// fn print_if_string(value: Rc<dyn Any>) { /// if let Ok(string) = value.downcast::<String>() { /// println!("String ({}): {}", string.len(), string); /// } |
