From f2c70191ab9abbb159df4cff18b841dc86103bb1 Mon Sep 17 00:00:00 2001 From: Cory Slep Date: Mon, 7 Jan 2019 22:50:07 +0100 Subject: [PATCH] Fix bad formatting in comments. --- tools/exp/props/funcprop.go | 4 ++-- tools/exp/props/nonfuncprop.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/exp/props/funcprop.go b/tools/exp/props/funcprop.go index a420f46..bcfa457 100644 --- a/tools/exp/props/funcprop.go +++ b/tools/exp/props/funcprop.go @@ -738,9 +738,9 @@ func (p *FunctionalPropertyGenerator) multiTypeFuncs() []*codegen.Method { // Is Method for i, kind := range p.Kinds { isComment := fmt.Sprintf( - "%s returns true if this property has a type of value of %q. When true, use the %s and %s methods to access and set this property.", + "%s returns true if this property has a type of %q. When true, use the %s and %s methods to access and set this property.", p.isMethodName(i), - kind.ConcreteKind, + kind.Name.LowerName, p.getFnName(i), p.setFnName(i), ) diff --git a/tools/exp/props/nonfuncprop.go b/tools/exp/props/nonfuncprop.go index e27c215..8a33489 100644 --- a/tools/exp/props/nonfuncprop.go +++ b/tools/exp/props/nonfuncprop.go @@ -136,7 +136,7 @@ func (p *NonFunctionalPropertyGenerator) funcs() []*codegen.Method { jen.Op("*").Id(codegen.This()).Op("..."), ), }, - fmt.Sprintf("%s prepends a %s value to the front of a list of the property %q.", prependMethodName, kind.ConcreteKind, p.PropertyName()))) + fmt.Sprintf("%s prepends a %s value to the front of a list of the property %q.", prependMethodName, kind.Name.LowerName, p.PropertyName()))) // Append Method appendMethodName := fmt.Sprintf("%s%s", appendMethod, p.kindCamelName(i)) methods = append(methods, @@ -154,7 +154,7 @@ func (p *NonFunctionalPropertyGenerator) funcs() []*codegen.Method { ), ), }, - fmt.Sprintf("%s appends a %s value to the back of a list of the property %q", appendMethodName, kind.ConcreteKind, p.PropertyName()))) + fmt.Sprintf("%s appends a %s value to the back of a list of the property %q", appendMethodName, kind.Name.LowerName, p.PropertyName()))) // Less logic if i > 0 { less.Else()