Skip to content

Commit

Permalink
Add feature annotations to the doctests for ascii_ctype.
Browse files Browse the repository at this point in the history
  • Loading branch information
zackw committed Feb 13, 2017
1 parent c2566f6 commit 162240c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/libstd/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -225,6 +227,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -257,6 +261,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -290,6 +296,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -322,6 +330,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -355,6 +365,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -390,6 +402,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -422,6 +436,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -471,6 +487,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down Expand Up @@ -503,6 +521,8 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// #![feature(ascii_ctype)]
/// # #![allow(non_snake_case)]
/// use std::ascii::AsciiExt;
/// let A = 'A';
/// let G = 'G';
Expand Down

0 comments on commit 162240c

Please sign in to comment.