From b8366b171a5382c113b908279cd10797047e9439 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Fri, 11 Dec 2015 18:44:11 -0500 Subject: [PATCH] Correct reference to `Box` in `Any` docs --- src/libcore/any.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libcore/any.rs b/src/libcore/any.rs index 61c64ab8deebd..2ad121b03fa11 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` adds the `move` method, which will unwrap a -//! `Box` from the object. See the extension traits (`*Ext`) for the full -//! details. +//! inner value. `Box` adds the `downcast` method, which attempts to +//! convert to a `Box`. 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.