Skip to content

Commit

Permalink
cmds: make hex the default print format
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktwerner committed Jul 26, 2019
1 parent b69fd9b commit 6a728be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmds/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ fn parse_format(fmt_str: &str) -> Result<(u32, u32, Format), Error> {
count_str.parse()?
};
let mut size = 4;
let mut format = Format::Decimal;
let mut format = Format::Hex;
for c in fmt_str.chars().skip_while(|c| c.is_numeric()) {
match c {
'b' => size = 1,
Expand Down

0 comments on commit 6a728be

Please sign in to comment.