diff --git a/src/lib.rs b/src/lib.rs index 79717b7..c9e8825 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,6 +2,9 @@ #![cfg_attr(all(feature = "use_alloc", not(feature = "use_std")), feature(alloc))] #![cfg_attr(all(feature = "use_collections", not(feature = "use_std")), feature(collections))] +//! A library that provides a way to logically own objects, whether or not +//! heap allocation is available. + #[cfg(feature = "use_std")] extern crate std; #[cfg(all(feature = "use_alloc", not(feature = "use_std")))] diff --git a/src/object.rs b/src/object.rs index 38daf22..220b28f 100644 --- a/src/object.rs +++ b/src/object.rs @@ -27,7 +27,7 @@ use collections::vec::Vec; /// /// Note that a `Vec` converted into an `Into>` gets transformed /// into a boxed slice, and can no longer be resized. See also -/// [ManagedSlice][struct.ManagedSlice.html], which does not have this drawback. +/// [ManagedSlice](enum.ManagedSlice.html), which does not have this drawback. pub enum Managed<'a, T: 'a + ?Sized> { /// Borrowed variant. Borrowed(&'a mut T), diff --git a/src/slice.rs b/src/slice.rs index 7d60a85..b0ec4fe 100644 --- a/src/slice.rs +++ b/src/slice.rs @@ -21,7 +21,7 @@ use collections::vec::Vec; /// argument; then, it will be possible to pass either a `Vec`, or a `&'a mut [T]` /// without any conversion at the call site. /// -/// See also [Managed][struct.Managed.html]. +/// See also [Managed](enum.Managed.html). pub enum ManagedSlice<'a, T: 'a> { /// Borrowed variant. Borrowed(&'a mut [T]),