Add feature annotations to the doctests for ascii_ctype.

This commit is contained in:
Zack Weinberg 2017-02-13 18:44:43 -05:00
parent c2566f638a
commit 162240c744
1 changed files with 20 additions and 0 deletions

View File

@ -193,6 +193,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -225,6 +227,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -257,6 +261,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -290,6 +296,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -322,6 +330,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -355,6 +365,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -390,6 +402,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -422,6 +436,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -471,6 +487,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';
@ -503,6 +521,8 @@ pub trait AsciiExt {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt; /// use std::ascii::AsciiExt;
/// let A = 'A'; /// let A = 'A';
/// let G = 'G'; /// let G = 'G';