Make comments more useful
This commit is contained in:
@@ -14,7 +14,8 @@ type Generator struct {
|
||||
Text string `xml:",chardata"`
|
||||
}
|
||||
|
||||
// NewGenerator creates a new Generator. It returns a *Generator.
|
||||
// NewGenerator creates a new Generator. It takes in a string text and returns a
|
||||
// *Generator.
|
||||
func NewGenerator(text string) *Generator {
|
||||
return &Generator{
|
||||
CommonAttributes: NewCommonAttributes(),
|
||||
|
Reference in New Issue
Block a user