Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
let-def committed May 12, 2023
1 parent 567eef9 commit 5a46729
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/decodedline_elf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
output should be similar to
objdump --dwarf=decodedline <mybin>
*)
let useage () =
(prerr_endline ("Usage: " ^ Sys.argv.(0) ^ " my_binary.elf [-no-address]"); exit 1)
let usage () =
prerr_endline ("Usage: " ^ Sys.argv.(0) ^ " my_binary.elf [-no-address]");
exit 1

let path =
if Array.length Sys.argv <= 1 then
useage ()
usage ()
else
Sys.argv.(1)

Expand All @@ -16,7 +17,7 @@ let print_address =
true
else match Sys.argv.(2) with
| "-no-address" -> false
| _ -> useage ()
| _ -> usage ()

let buffer = Owee_buf.map_binary path

Expand Down

0 comments on commit 5a46729

Please sign in to comment.