Fix bad formatting in comments.
このコミットが含まれているのは:
コミット
f2c70191ab
|
@ -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()
|
||||
|
|
読み込み中…
新しいイシューから参照