diff --git a/fejkdata.go b/fejkdata.go index f18fa4f..41672d7 100644 --- a/fejkdata.go +++ b/fejkdata.go @@ -120,7 +120,7 @@ func New(opts ...Option) (*Generator, error) { // List returns the sorted dotted paths Fake can render: every category, the dotted // fields within a template, and folder segments. A choice consumes no segment, so a // path continues through one only where every variant carries it, which is the -// rule Fake applies too. A selector is left out: Fake also takes `[key]` after a table. +// rule Fake applies too. func (f *Generator) List() []string { var out []string for _, name := range sortedNames(f.categories) { diff --git a/format.go b/format.go index 941bc17..5cca79d 100644 --- a/format.go +++ b/format.go @@ -133,7 +133,7 @@ type builtin struct { // funcCall splits a "{token}" body shaped name(args) into its parts; ok is false // for a plain field or alternation body. A '(' without a trailing ')' yields -// ok=false; parseFormat reports it as malformed. +// ok=false. func funcCall(body string) (name string, args []string, ok bool) { lp := indexOutside(body, '(') if lp < 0 || !strings.HasSuffix(body, ")") {