From 7f684cf06e623a33bd043cca7ed1b6513eb618f6 Mon Sep 17 00:00:00 2001 From: sharks Date: Sun, 15 Apr 2018 21:04:00 -0500 Subject: [PATCH] WARNING: src/lib.rs - IpNetwork::mask (line 83) Code block is not currently run as a test, but will in future versions of rustdoc. Please ensure this code block is a runnable test, or use the `ignore` directive. --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 21f99df..cde4d7b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -79,6 +79,7 @@ impl IpNetwork { /// That means the `prefix` most significant bits will be 1 and the rest 0 /// /// # Example + /// /// ``` /// use ipnetwork::IpNetwork; /// use std::net::{Ipv4Addr, Ipv6Addr}; @@ -92,7 +93,7 @@ impl IpNetwork { /// assert_eq!(v6_net.mask(), Ipv6Addr::new(0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff)); /// let v6_net: IpNetwork = "ff01::0/32".parse().unwrap(); /// assert_eq!(v6_net.mask(), Ipv6Addr::new(0xffff, 0xffff, 0, 0, 0, 0, 0, 0)); - ///``` + /// ``` pub fn mask(&self) -> IpAddr { match *self { IpNetwork::V4(ref a) => IpAddr::V4(a.mask()),