Skip to content

Commit 49aa334

Browse files
author
Serhii Khoma
authored
Fix missing quotes in readme example (#70)
1 parent 251fef9 commit 49aa334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Right "{\"name\":\"Tom\",\"age\":25,\"team\":null}"
156156
Decoding can fail if the `Json` doesn't match the shape expected by a `DecodeJson` instance; in that case, an error is returned instead of the decoded value.
157157

158158
```
159-
> badUserJsonString = """{ "name": "Tom", "age": null }
159+
> badUserJsonString = """{ "name": "Tom", "age": null }"""
160160
> (decodeJson =<< jsonParser badUserJsonString) :: Either String User
161161
Left "JSON was missing expected field: team"
162162
```

0 commit comments

Comments
 (0)