From 9a57117d79497d89dcba75c687d7053feb88b606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Fri, 29 Nov 2024 10:30:39 +0100 Subject: [PATCH] Change the order of unicode block names and unicode notation range --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 45a1ae4..bf6f2dd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(());