Explorar o código

Fixed problem with doc test

Davide Della Giustina %!s(int64=2) %!d(string=hai) anos
pai
achega
bf827533fe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/iface/interface/mod.rs

+ 1 - 1
src/iface/interface/mod.rs

@@ -342,7 +342,7 @@ let neighbor_cache = // ...
 # let ipv4_frag_cache = // ...
 # ReassemblyBuffer::new(vec![], BTreeMap::new());
 let ip_addrs = // ...
-# [];
+# heapless::Vec::<IpCidr, 5>::new();
 let builder = InterfaceBuilder::new()
         .hardware_addr(hw_addr.into())
         .neighbor_cache(neighbor_cache)