Skip to content

Commit

Permalink
refactor: remove unlabeled use of Array.sub
Browse files Browse the repository at this point in the history
Array.sub should use ~pos and ~len, but it's easier to just do List.tl

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Oct 9, 2021
1 parent 485a58e commit e03257d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let () =
"-output-complete-exe")
prog
(List.map modules ~f:(fun m -> m ^ ".ml") |> String.concat ~sep:" "));
let args = Array.to_list (Array.sub Sys.argv 1 (Array.length Sys.argv - 1)) in
let args = List.tl (Array.to_list Sys.argv) in
let args =
match which with
| None -> args
Expand Down

0 comments on commit e03257d

Please sign in to comment.