Skip to content

Commit d95bf19

Browse files
committed
Fix: update documentation for nullarySum to reflect proper usage
1 parent 1b8991c commit d95bf19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Codec/Argonaut/Generic.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import Data.Symbol (class IsSymbol, SProxy(..), reflectSymbol)
1818
-- | data MySum = Ctor1 | Ctor2 | MoarCtors
1919
-- | derive instance genericMySum ∷ Generic MySum _
2020
-- |
21-
-- | encode nullarySum Ctor1 == J.fromString "Ctor1"
22-
-- | decode nullarySum (J.fromString "MoarCtors") == Right MoarCtors
21+
-- | encode (nullarySum "MySum") Ctor1 == J.fromString "Ctor1"
22+
-- | decode (nullarySum "MySum") (J.fromString "MoarCtors") == Right MoarCtors
2323
-- |```
2424
nullarySum a r. Generic a r NullarySumCodec r String CA.JsonCodec a
2525
nullarySum name =

0 commit comments

Comments
 (0)