Skip to content

Commit 1b00593

Browse files
committed
Fix README call examples
1 parent 8e6e725 commit 1b00593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ This first example does not use any composition.
3535
import { run, call, callMethod } from 'affection'
3636

3737
const getJSON = url => [
38-
call(fetch, url),
38+
call(fetch, [url]),
3939
resp => [callMethod(resp, 'json')]
4040
]
4141

@@ -182,7 +182,7 @@ For example, we are building a dictionary of the most used word for each country
182182
We want to retain the country we are querying about in the result.
183183

184184
```js
185-
const getMostUsedWordInCountry = country => call(MyAPI, country)
185+
const getMostUsedWordInCountry = country => call(MyAPI, [country])
186186
const countryWordStep = step(getMostUsedWordInCountry)
187187
const getCountryWord = mapStep(countryWordStep, (result, country) => ({ country, word: result }))
188188

0 commit comments

Comments
 (0)