Skip to content

Commit

Permalink
Merge pull request #122 from CodeLingoBot/rewrite
Browse files Browse the repository at this point in the history
Fix function comments based on best practices from Effective Go
  • Loading branch information
Stebalien authored Mar 20, 2019
2 parents 6de025e + 773e52b commit 8e1699b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion key.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (k Key) MarshalJSON() ([]byte, error) {
return json.Marshal(k.String())
}

// MarshalJSON implements the json.Unmarshaler interface,
// UnmarshalJSON implements the json.Unmarshaler interface,
// keys will parse any value specified as a key to a string
func (k *Key) UnmarshalJSON(data []byte) error {
var key string
Expand Down

0 comments on commit 8e1699b

Please sign in to comment.