Skip to content

Commit 2841cc0

Browse files
committed
Auto merge of #30348 - shepmaster:box-any-docs, r=steveklabnik
2 parents 69adc88 + b8366b1 commit 2841cc0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libcore/any.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,14 @@
1616
//! `downcast_ref` methods, to test if the contained value is of a given type,
1717
//! and to get a reference to the inner value as a type. As `&mut Any`, there
1818
//! is also the `downcast_mut` method, for getting a mutable reference to the
19-
//! inner value. `Box<Any>` adds the `move` method, which will unwrap a
20-
//! `Box<T>` from the object. See the extension traits (`*Ext`) for the full
21-
//! details.
19+
//! inner value. `Box<Any>` adds the `downcast` method, which attempts to
20+
//! convert to a `Box<T>`. See the [`Box`] documentation for the full details.
2221
//!
2322
//! Note that &Any is limited to testing whether a value is of a specified
2423
//! concrete type, and cannot be used to test whether a type implements a trait.
2524
//!
25+
//! [`Box`]: ../boxed/struct.Box.html
26+
//!
2627
//! # Examples
2728
//!
2829
//! Consider a situation where we want to log out a value passed to a function.

0 commit comments

Comments
 (0)