Skip to content

Commit

Permalink
update with better hex formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Porter committed Jan 5, 2025
1 parent 5601ea1 commit b2e5b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/unrenderable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fn main() -> Result<()> {
// populate the matcher
let injector = picker.injector();
for ctrl in ASCII_CONTROL_CHARS {
let hex_ctrl = format!("{:X}", ctrl as u32); // Convert the char to a u32 and format as hex
let hex_ctrl = format!("0x{:X}", ctrl as u8); // Convert the char to a u32 and format as hex
let option = format!("hex is {} rendered is {} EOL", hex_ctrl, ctrl);
injector.push(option);
}
Expand Down

0 comments on commit b2e5b0c

Please sign in to comment.