Unverified Commit 8e1699b5 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #122 from CodeLingoBot/rewrite

Fix function comments based on best practices from Effective Go
parents 6de025e1 773e52b3
...@@ -239,7 +239,7 @@ func (k Key) MarshalJSON() ([]byte, error) { ...@@ -239,7 +239,7 @@ func (k Key) MarshalJSON() ([]byte, error) {
return json.Marshal(k.String()) 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 // keys will parse any value specified as a key to a string
func (k *Key) UnmarshalJSON(data []byte) error { func (k *Key) UnmarshalJSON(data []byte) error {
var key string var key string
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment