Skip to content

Commit

Permalink
Change the order of unicode block names and unicode notation range
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Nov 29, 2024
1 parent 53c0b8e commit 9a57117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ fn main() -> anyhow::Result<()> {

if args.print_unicode_blocks {
for (&name, range) in &unicode_blocks::UNICODE_BLOCKS {
print!("{name}");
if args.verbose {
let range_start = char_to_unicode_notation(*range.start());
let range_end = char_to_unicode_notation(*range.end());
print!(": {range_start}..{range_end}");
print!("{range_start}..{range_end}: ");
}
print!("{name}");
println!();
}
return Ok(());
Expand Down

0 comments on commit 9a57117

Please sign in to comment.