diff --git a/README.md b/README.md index 5b1ee6ce..3bc923c0 100644 --- a/README.md +++ b/README.md @@ -161,10 +161,12 @@ function getFruitCount() { > See also [compose](#compose). -You can use `get` when performing asynchronous operations as well: +### `fetch` + +You can use `fetch` when performing asynchronous operations as well: ```js -async function getUser(id) { +async function fetchUser(id) { const user = await fetch(`/api/user/${id}`) return user }