fix(docgen): make functions that take varargs have the signature

ctrl-delete
TorchedSammy 10 months ago
parent ee4d97ff9a
commit b712efd278
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

@ -80,6 +80,9 @@ func main() {
if emmyType == "@param" {
em.Params = append(em.Params, emmyLinePieces[1])
}
if emmyType == "@vararg" {
em.Params = append(em.Params, "...") // add vararg
}
em.Docs = append(em.Docs, d)
} else {
funcdoc = append(funcdoc, d)
@ -111,6 +114,9 @@ func main() {
if emmyType == "@param" {
em.Params = append(em.Params, emmyLinePieces[1])
}
if emmyType == "@vararg" {
em.Params = append(em.Params, "...") // add vararg
}
em.Docs = append(em.Docs, d)
} else {
funcdoc = append(funcdoc, d)

Loading…
Cancel
Save