Skip to content

Commit

Permalink
fix a duplicated word in failwith message
Browse files Browse the repository at this point in the history
  • Loading branch information
dawedawe committed Apr 24, 2024
1 parent 824de42 commit 69a5db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FsYacc.Core/fsyaccdriver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ let writeSpecToFile (generatorState: GeneratorState) (spec: ParserSpec) (compile

for id, startState in List.zip spec.StartSymbols compiledSpec.startStates do
if not (types.ContainsKey id) then
failwith ("a %type declaration is required for for start token " + id)
failwith ("a %type declaration is required for start token " + id)

let ty = types.[id] in
writer.WriteLine "let %s lexer lexbuf : %s =" id ty
Expand Down

0 comments on commit 69a5db4

Please sign in to comment.