corrected method doc for xim.ID.MarshalText()

master
Charles Iliya Krempeaux 2021-11-08 10:18:53 -08:00
parent 7f8c0adf5d
commit cd717c34c5
1 changed files with 1 additions and 1 deletions

2
id.go
View File

@ -84,7 +84,7 @@ func (receiver ID) String() string {
return serialized return serialized
} }
// UnmarshalText makes xim.ID fit the encoding.TextMarshaler interface. // MarshalText makes xim.ID fit the encoding.TextMarshaler interface.
func (receiver ID) MarshalText() (text []byte, err error) { func (receiver ID) MarshalText() (text []byte, err error) {
if Nothing() == receiver { if Nothing() == receiver {
return nil, errNothing return nil, errNothing