From bc3b89b95c558047b47d9efe246dc25cb8e82e7e Mon Sep 17 00:00:00 2001 From: jituanlin Date: Thu, 17 Dec 2020 23:36:52 +0800 Subject: [PATCH] fix docs --- Codec.md | 2 +- Decoder.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Codec.md b/Codec.md index 0656973ea..6ba988e25 100644 --- a/Codec.md +++ b/Codec.md @@ -38,7 +38,7 @@ const decoder: D.Decoder = pipe( }) ) -const encoder: E.Encoder = { +const encoder: E.Encoder = { encode: String } diff --git a/Decoder.md b/Decoder.md index c4ef3acb5..cf439b678 100644 --- a/Decoder.md +++ b/Decoder.md @@ -329,7 +329,7 @@ console.log(isRight(Positive.decode(-1))) // => false ## The `parse` combinator -The `parse` combinator is more powerful than `refine` in that you can change the output type +The `parse` combinator is more powerful than `refine` in that you can change the output value ```ts import { pipe } from 'fp-ts/function'