diff --git a/README.md b/README.md index 3099c82..23cc450 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ fn main() { instance.binary_serialize::<_, BigEndian>(&mut serialized_data); println!("{:?}", instance); - println!("{}", hexdump()); + println!("hex representation:\n{}", hexdump(&serialized_data)); // perform small mutations on the instance instance.mutate(&mut mutator, None); diff --git a/crates-io.md b/crates-io.md index 3099c82..23cc450 100644 --- a/crates-io.md +++ b/crates-io.md @@ -60,7 +60,7 @@ fn main() { instance.binary_serialize::<_, BigEndian>(&mut serialized_data); println!("{:?}", instance); - println!("{}", hexdump()); + println!("hex representation:\n{}", hexdump(&serialized_data)); // perform small mutations on the instance instance.mutate(&mut mutator, None); diff --git a/lain/src/lib.rs b/lain/src/lib.rs index d7487e8..80a493d 100644 --- a/lain/src/lib.rs +++ b/lain/src/lib.rs @@ -58,7 +58,7 @@ //! instance.binary_serialize::<_, BigEndian>(&mut serialized_data); //! //! println!("{:?}", instance); -//! println!("{}", hexdump()); +//! println!("hex representation:\n{}", hexdump(&serialized_data)); //! //! // perform small mutations on the instance //! instance.mutate(&mut mutator, None);