From 0b177a389a3beb2d27f43607b462b35ef7d652ce Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 3 Oct 2021 00:54:39 +0900 Subject: Update godoc --- driver/template.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver/template.go') diff --git a/driver/template.go b/driver/template.go index a3d2726..bafe718 100644 --- a/driver/template.go +++ b/driver/template.go @@ -71,6 +71,7 @@ func GenLexer(clspec *spec.CompiledLexSpec, pkgName string) ([]byte, error) { { var b strings.Builder fmt.Fprintf(&b, ` +// ModeIDToName converts a mode ID to a name. func ModeIDToName(id ModeID) string { switch id {`) for i, k := range clspec.ModeNames { @@ -127,6 +128,7 @@ func ModeIDToName(id ModeID) string { { var b strings.Builder fmt.Fprintf(&b, ` +// KindIDToName converts a kind ID to a name. func KindIDToName(id KindID) string { switch id {`) for i, k := range clspec.KindNames { -- cgit v1.2.3