For - comments can just be 2 slashes.
Avoid attempting to get rustdoc involved where it ought not be.
@@ -1538,18 +1538,18 @@ pub mod tests {
let inner_hi = make_pfx("10.0.255.0", 24);
let supernet = make_pfx("10.0.0.0", 8);
- /// Does not cover a sibling/neighbor prefix.
+ // Does not cover a sibling/neighbor prefix.
assert!(!outer.address_prefix_covers(sibling));
- /// Covers subnets at the extremes and middle of the supernet.
+ // Covers subnets at the extremes and middle of the supernet.
assert!(outer.address_prefix_covers(inner_low));
assert!(outer.address_prefix_covers(inner_mid));
assert!(outer.address_prefix_covers(inner_hi));
- /// Does not cover host-ROA and network: 10.0/32 not cover 10.0/16.
+ // Does not cover host-ROA and network: 10.0/32 not cover 10.0/16.
assert!(!host_roa.address_prefix_covers(outer));
- /// Does not cover supernet (10.0/16 does not cover 10/8).
+ // Does not cover supernet (10.0/16 does not cover 10/8).
assert!(!outer.address_prefix_covers(supernet));
}
@@ -1563,19 +1563,19 @@ pub mod tests {
let inner_hi = make_pfx("2001:db8:FFFF::", 48);
let supernet = make_pfx("2001::", 24);
- /// Does not cover a sibling/neighbor prefix.
+ // Does not cover a sibling/neighbor prefix.
assert!(!outer.address_prefix_covers(sibling));
- /// Covers subnets at the extremes and middle of the supernet.
+ // Covers subnets at the extremes and middle of the supernet.
assert!(outer.address_prefix_covers(inner_low));
assert!(outer.address_prefix_covers(inner_mid));
assert!(outer.address_prefix_covers(inner_hi));
- /// Does not cover host-ROA and network: 2001:db8::/128
- /// does not cover 2001:db8::/32.
+ // Does not cover host-ROA and network: 2001:db8::/128
+ // does not cover 2001:db8::/32.
assert!(!host_roa.address_prefix_covers(outer));
- /// Does not cover supernet (2001:db8::/32 does not cover 2001::/24).
+ // Does not cover supernet (2001:db8::/32 does not cover 2001::/24).
assert!(!outer.address_prefix_covers(supernet));
}
}
