Skip to content

Commit

Permalink
Display 10..10 as 10
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Sep 16, 2024
1 parent 119f6fe commit d36abef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions irp/src/build_nfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1586,6 +1586,7 @@ impl fmt::Display for Length {
match self {
Length::Expression(e) => write!(f, "{e}"),
Length::Range(min, None) => write!(f, "{min}.."),
Length::Range(min, Some(max)) if min == max => write!(f, "{min}"),
Length::Range(min, Some(max)) => write!(f, "{min}..{max}"),
}
}
Expand Down

0 comments on commit d36abef

Please sign in to comment.