Merge pull request #29 from prashantv/unmarshal_comment

Fix typo in generated comment for UnmarshalText
This commit is contained in:
Álvaro López Espinosa 2018-04-10 14:03:10 +01:00 committed by GitHub
commit 6c940ce86e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ func (i %[1]s) MarshalText() ([]byte, error) {
return []byte(i.String()), nil
}
// MarshalText implements the encoding.TextUnmarshaler interface for %[1]s
// UnmarshalText implements the encoding.TextUnmarshaler interface for %[1]s
func (i *%[1]s) UnmarshalText(text []byte) error {
var err error
*i, err = %[1]sString(string(text))

View File

@ -660,7 +660,7 @@ func (i Prime) MarshalText() ([]byte, error) {
return []byte(i.String()), nil
}
// MarshalText implements the encoding.TextUnmarshaler interface for Prime
// UnmarshalText implements the encoding.TextUnmarshaler interface for Prime
func (i *Prime) UnmarshalText(text []byte) error {
var err error
*i, err = PrimeString(string(text))