Skip to content

Commit

Permalink
Fixes task.willMatchWith example in migration docs (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
robotlolita committed Oct 15, 2017
1 parent 09816bc commit f7d7226
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_docs/v2.0.0/migrating/from-data.task.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ Folktale 2 removes both `fold` and `cata`, and provides a new method that signal
const { of } = require('folktale/data/task');

of(1).willMatchWith({
Cancelled: () => 'cancelled',
Resolved: (value) => value + 1,
Rejected: (error) => error - 1
Cancelled: () => of('cancelled'),
Resolved: (value) => of(value + 1),
Rejected: (error) => of(error - 1)
});
// Task.of(2)
{% endhighlight %}
Expand Down

0 comments on commit f7d7226

Please sign in to comment.