Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
titaneric committed Jan 11, 2025
1 parent a7257e5 commit ead3dca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/format/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ where
};
let substr = &s[start_idx..];

// If the width is not fixed, we need to determine the width from the next item.
// Try to consume the number in the non-greedy way.
if max_width == usize::MAX {
let next_size = get_numeric_item_len(next_item).unwrap_or(0);
let numeric_bytes_available =
Expand Down

0 comments on commit ead3dca

Please sign in to comment.