Merge pull request #2 from shurcooL/patch-1
README: Fix formatting by adding missing closing backtick.
This commit is contained in:
commit
175ecc603a
@ -48,7 +48,7 @@ func (r *Pill) UnmarshalJSON([]byte) error
|
|||||||
|
|
||||||
`MarshalJSON` will translate the value of a `Pill` constant to the `[]byte`
|
`MarshalJSON` will translate the value of a `Pill` constant to the `[]byte`
|
||||||
representation of the respective constant name, so that the call
|
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`
|
`UnmarshalJSON` performs the opposite operation; given the `[]byte`
|
||||||
representation of a `Pill` constant it will change the receiver to equal the
|
representation of a `Pill` constant it will change the receiver to equal the
|
||||||
|
Loading…
Reference in New Issue
Block a user