Skip to content

Commit

Permalink
Fix README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel McCallum <[email protected]>
  • Loading branch information
npmccallum committed Jan 11, 2021
1 parent ffc5442 commit b38a023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ciborium-ll/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ let mut chunks = 0;

match decoder.pull().unwrap() {
Header::Text(len) => {
let mut buffer = [0u8; 7];
let mut segments = decoder.text(len, &mut buffer[..]);
let mut segments = decoder.text(len);
while let Some(mut segment) = segments.pull().unwrap() {
while let Some(chunk) = segment.pull().unwrap() {
let mut buffer = [0u8; 7];
while let Some(chunk) = segment.pull(&mut buffer[..]).unwrap() {
match chunk {
"Hello, " if chunks == 0 => chunks = 1,
"World!" if chunks == 1 => chunks = 2,
Expand Down

0 comments on commit b38a023

Please sign in to comment.