Skip to content

Commit 42bb14b

Browse files
authored
Merge pull request #53 from naufalauddin/fix-docs
Fix Typo
2 parents 17a2446 + 2d05375 commit 42bb14b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ codec =
252252

253253
### "Prismatic" codecs
254254

255-
If you have a type with a pair of functions like the `preview` and `view` that make up a prism (`preview :: a -> Maybe b`, `view :: b -> a`), you can use these to adapt an existing codec to further refine it.
255+
If you have a type with a pair of functions like the `preview` and `review` that make up a prism (`preview :: a -> Maybe b`, `review :: b -> a`), you can use these to adapt an existing codec to further refine it.
256256

257257
For example, to adapt the [`CA.string`](https://pursuit.purescript.org/packages/purescript-codec-argonaut/docs/Data.Codec.Argonaut#v:string) codec to only work for `NonEmptyString`s:
258258

src/Data/Codec/Argonaut.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ coercible name codec =
397397
-- | be raised for JSON input.
398398
-- |
399399
-- | This function is named as such as the pair of functions it accepts
400-
-- | correspond with the `preview` and `view` functions of a `Prism`-style lens.
400+
-- | correspond with the `preview` and `review` functions of a `Prism`-style lens.
401401
-- |
402402
-- | An example of this would be a codec for `Data.String.NonEmpty.NonEmptyString`:
403403
-- |

0 commit comments

Comments
 (0)