Explorar el Código

update readme

deltanedas hace 2 años
padre
commit
3a6d764891
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      README.md

+ 2 - 1
README.md

@@ -24,7 +24,8 @@ let thingy = Thingy {
 	debug: "not written".to_owned()
 	debug: "not written".to_owned()
 }
 }
 let mut bytes = vec![];
 let mut bytes = vec![];
-thingy.write(&mut bytes);
+thingy.write(&mut bytes)?;
+// can also write thingy.write_to_bytes()?
 ```
 ```
 
 
 Under the hood its a generic wrapper over little-endian [byteorder](lib.rs/byteorder) with a derive macro for structs and enums to use.
 Under the hood its a generic wrapper over little-endian [byteorder](lib.rs/byteorder) with a derive macro for structs and enums to use.