Skip to content

Commit

Permalink
hexdump uses . not ? as a placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
thejpster committed May 19, 2024
1 parent fbee3ca commit ff0433b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/hexdump/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn real_main() -> Result<(), neotron_sdk::Error> {
// print ascii (with padding)
for b in valid {
let ch = *b as char;
let _ = write!(stdout, "{}", if !ch.is_control() { ch } else { '?' });
let _ = write!(stdout, "{}", if !ch.is_control() { ch } else { '.' });
}
for _padding in 0..(buffer.len() - valid.len()) {
let _ = write!(stdout, ".");
Expand Down

0 comments on commit ff0433b

Please sign in to comment.