Skip to content

Commit

Permalink
Add feature gate to doctests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcdyer committed Sep 9, 2017
1 parent ad170f2 commit 8b6122f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstd/net/ip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ impl Ipv4Addr {
/// # Examples
///
/// ```
/// #![feature(ip)]
/// use std::net::Ipv4Addr;
///
/// let addr = Ipv4Addr::localhost();
Expand All @@ -361,6 +362,7 @@ impl Ipv4Addr {
/// # Examples
///
/// ```
/// #![feature(ip)]
/// use std::net::Ipv4Addr;
///
/// let addr = Ipv4Addr::unspecified();
Expand Down Expand Up @@ -821,6 +823,7 @@ impl Ipv6Addr {
/// # Examples
///
/// ```
/// #![feature(ip)]
/// use std::net::Ipv6Addr;
///
/// let addr = Ipv6Addr::localhost();
Expand All @@ -835,6 +838,7 @@ impl Ipv6Addr {
/// # Examples
///
/// ```
/// #![feature(ip)]
/// use std::net::Ipv6Addr;
///
/// let addr = Ipv6Addr::unspecified();
Expand Down

0 comments on commit 8b6122f

Please sign in to comment.