Merge pull request #2 from shurcooL/patch-1

README: Fix formatting by adding missing closing backtick.
This commit is contained in:
Francesc Campoy 2015-02-02 16:05:44 +00:00
commit 175ecc603a
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ func (r *Pill) UnmarshalJSON([]byte) error
`MarshalJSON` will translate the value of a `Pill` constant to the `[]byte`
representation of the respective constant name, so that the call
`json.Marshal(painkiller.Aspirin) will return the bytes `[]byte("\"Aspirin\"")`.
`json.Marshal(painkiller.Aspirin)` will return the bytes `[]byte("\"Aspirin\"")`.
`UnmarshalJSON` performs the opposite operation; given the `[]byte`
representation of a `Pill` constant it will change the receiver to equal the