Fix bad formatting in comments.

このコミットが含まれているのは:
Cory Slep 2019-01-07 22:50:07 +01:00
コミット f2c70191ab
2個のファイルの変更4行の追加4行の削除

ファイルの表示

@ -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),
)

ファイルの表示

@ -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()