diff options
| author | bors <bors@rust-lang.org> | 2015-12-13 18:59:08 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-12-13 18:59:08 +0000 |
| commit | 2841cc038102f0e73fb5ae365330ec4c22e37868 (patch) | |
| tree | e307f6fb232169b8fde507b5530eba21261ab5dc | |
| parent | 69adc883aa6d0660ba1a235a2cee56c5cffd38e0 (diff) | |
| parent | b8366b171a5382c113b908279cd10797047e9439 (diff) | |
| download | rust-2841cc038102f0e73fb5ae365330ec4c22e37868.tar.gz rust-2841cc038102f0e73fb5ae365330ec4c22e37868.zip | |
Auto merge of #30348 - shepmaster:box-any-docs, r=steveklabnik
| -rw-r--r-- | src/libcore/any.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcore/any.rs b/src/libcore/any.rs index 61c64ab8dee..2ad121b03fa 100644 --- a/src/libcore/any.rs +++ b/src/libcore/any.rs @@ -16,13 +16,14 @@ //! `downcast_ref` methods, to test if the contained value is of a given type, //! and to get a reference to the inner value as a type. As `&mut Any`, there //! is also the `downcast_mut` method, for getting a mutable reference to the -//! inner value. `Box<Any>` adds the `move` method, which will unwrap a -//! `Box<T>` from the object. See the extension traits (`*Ext`) for the full -//! details. +//! inner value. `Box<Any>` adds the `downcast` method, which attempts to +//! convert to a `Box<T>`. See the [`Box`] documentation for the full details. //! //! Note that &Any is limited to testing whether a value is of a specified //! concrete type, and cannot be used to test whether a type implements a trait. //! +//! [`Box`]: ../boxed/struct.Box.html +//! //! # Examples //! //! Consider a situation where we want to log out a value passed to a function. |
