Skip to content

Commit 37980d5

Browse files
authored
Merge pull request #4423 from fighur/main
Fix typo in `Ior` docs
2 parents bcbc056 + f4fe36f commit 37980d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/datatypes/ior.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ val left = "Error".leftIor
3636
```
3737

3838

39-
When we look at the `Monad` or `Applicative` instances of `Ior`, we can see that they actually requires a `Semigroup` instance on the left side.
39+
When we look at the `Monad` or `Applicative` instances of `Ior`, we can see that they actually require a `Semigroup` instance on the left side.
4040
This is because `Ior` will actually accumulate failures on the left side, very similar to how the [`Validated`](validated.md) data type does.
4141
This means we can accumulate data on the left side while also being able to short-circuit upon the first left-side-only value.
4242
For example, sometimes, we might want to accumulate warnings together with a valid result and only halt the computation on a "hard error"

0 commit comments

Comments
 (0)