Skip to content

Commit

Permalink
Avoid confusion between Scala and JSON null
Browse files Browse the repository at this point in the history
Closes #146
  • Loading branch information
Noel Welsh committed Oct 31, 2018
1 parent cc8054c commit 0ea3418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/type-classes/implicits.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ into a common constructor based on the instance for `A`:
- if the option is `Some(aValue)`,
write `aValue` using the writer for `A`;

- if the option is `None`, write `null`.
- if the option is `None`, return `JsNull`.

Here is the same code written out as an `implicit def`:

Expand Down

0 comments on commit 0ea3418

Please sign in to comment.