Skip to content

Commit

Permalink
Repair lang check after shebang check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Phillips committed Nov 9, 2023
1 parent 10d3fe4 commit 266a328
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
(define (file-has-lang? file-name)
(define (check-shebang inp)
(cond
[(equal? #"#!" (read-bytes 2 inp))
[(equal? #"#!" (peek-bytes 2 0 inp))
(read-bytes-line inp)
(check-lang inp)]
[else
Expand Down

0 comments on commit 266a328

Please sign in to comment.