Show appropriate feature flags in docs
This commit is contained in:
@@ -49,7 +49,8 @@ use mem;
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(raw)]
|
||||
/// #![feature(raw)]
|
||||
///
|
||||
/// use std::raw::{self, Repr};
|
||||
///
|
||||
/// let slice: &[u16] = &[1, 2, 3, 4];
|
||||
@@ -98,7 +99,8 @@ impl<T> Clone for Slice<T> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// # #![feature(raw)]
|
||||
/// #![feature(raw)]
|
||||
///
|
||||
/// use std::mem;
|
||||
/// use std::raw;
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user