1
0

fix unexported code generation

This commit is contained in:
Arpad Ryszka 2025-08-20 03:30:46 +02:00
parent 9df067e770
commit 65cf8f34f3

View File

@ -402,7 +402,7 @@ func (s *Syntax) Generate(o GeneratorOptions, w io.Writer) error {
if o.Export {
fprint(`func Parse(r io.Reader) (*Node, error) {`)
} else {
fprint(`func parse(r io.Reader) (*Node, error) {`)
fprint(`func parse(r io.Reader) (*node, error) {`)
}
fprintln()