Skip to content

Commit eaddda3

Browse files
committed
Add the slice print statement
Since this is shown in the text and does not add too much complexity. I was following along without Rust Playground and not havinf this piece of code forced me to open a new page (more friction).
1 parent abf0be6 commit eaddda3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

08_traits_and_reading_bytes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ fn main() {
4646
let version = u32::from_le_bytes(buffer);
4747

4848
println!("Version: {}", version);
49+
println!("Bytes slice: {:?}", bytes_slice);
4950
}
5051
```
5152

0 commit comments

Comments
 (0)