Rollup merge of #27326 - steveklabnik:doc_show_use, r=Gankro

In spirit with https://internals.rust-lang.org/t/should-we-keep-including-obvious-imports-in-code-examples/2217, show the feature flags we're using in examples.

(also one instance of 'use')
This commit is contained in:
Steve Klabnik
2015-07-29 10:30:34 -04:00
47 changed files with 419 additions and 214 deletions

View File

@@ -125,7 +125,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// # #![feature(ascii)]
/// #![feature(ascii)]
///
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'a';
@@ -144,7 +145,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// # #![feature(ascii)]
/// #![feature(ascii)]
///
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'A';