Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed May 10, 2024
1 parent 8a09da6 commit 328f9d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/docs/async-data-result.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ AsyncData.Done(Result.Ok("something")).mapError((ok) => {
### .flatMapOk(f)

```ts
AsyncData<Result<A, E>>.mapError<B, F>(
AsyncData<Result<A, E>>.flatMapOk<B, F>(
func: (value: A) => AsyncData<Result<B, F>>,
): AsyncData<Result<B, E | F>>
```
Expand All @@ -129,7 +129,7 @@ AsyncData.Done(Result.Error("Error")).flatMapOk((ok) =>
### .flatMapError(f)

```ts
AsyncData<Result<A, E>>.mapError<B, F>(
AsyncData<Result<A, E>>.flatMapError<B, F>(
func: (value: E) => AsyncData<Result<B, F>>,
): AsyncData<Result<A | B, F>>
```
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/future-result.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Future.value(Result.Ok("something")).mapError((ok) => {
### .flatMapOk(f)

```ts
Future<Result<A, E>>.mapError<B, F>(
Future<Result<A, E>>.flatMapOk<B, F>(
func: (value: A) => Future<Result<B, F>>,
propagateCancel?: boolean
): Future<Result<B, E | F>>
Expand All @@ -132,7 +132,7 @@ Future.value(Result.Error("Error")).flatMapOk((ok) =>
### .flatMapError(f)

```ts
Future<Result<A, E>>.mapError<B, F>(
Future<Result<A, E>>.flatMapError<B, F>(
func: (value: E) => Future<Result<B, F>>,
propagateCancel?: boolean
): Future<Result<A | B, F>>
Expand Down

0 comments on commit 328f9d3

Please sign in to comment.