Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/elixir/lib/json.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ defprotocol JSON.Encoder do
If you have a struct, you can derive the implementation of this protocol
by specifying which fields should be encoded to JSON:

@derive {JSON.Encoder, only: [....]}
defstruct ...
@derive {JSON.Encoder, only: [....]}
defstruct ...

It is also possible to encode all fields or skip some fields via the
`:except` option:
Expand Down