Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanduc987 committed May 30, 2021
1 parent 4b71e81 commit 6c9555f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const toMsg = (data: RemoteData<Error, Option<string>>) =>
match({
Loading: () => 'loading',
Failure: (e) => `error: ${e.error.message}`,
Success_value_Some: (v) => `found ${v.value}`,
Success_value_Some_value: (value) => `found ${value}`,
Success_value_None: () => 'not found',
}),
)
Expand All @@ -64,7 +64,7 @@ const match = matchWithFor('_tag')
const toMsg = (data: RemoteData<Error, Option<string>>) => match(data).with({
Loading: () => 'loading',
Failure: (e) => `error: ${e.error.message}`,
Success_value_Some: (v) => `found ${v.value}`,
Success_value_Some_value: (value) => `found ${value}`,
Success_value_None: () => 'not found'
})

Expand Down

0 comments on commit 6c9555f

Please sign in to comment.