mirror of https://github.com/dmarkham/enumer.git
Merge pull request #29 from prashantv/unmarshal_comment
Fix typo in generated comment for UnmarshalText
This commit is contained in:
commit
6c940ce86e
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue