Skip to content

Commit

Permalink
docs: fix some readme typos (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
torra authored Oct 9, 2024
1 parent ffb54a4 commit 08daa24
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 @@ -64,7 +64,7 @@ request.execute(app)
.get('/')
```

When passing an `app` to `request`; it will automatically open the server for
When passing an `app` to `request.execute()`, it will automatically open the server for
incoming requests (by calling `listen()`) and, once a request has been made
the server will automatically shut down (by calling `.close()`). If you want to
keep the server open, perhaps if you're making multiple requests, you must call
Expand Down Expand Up @@ -243,7 +243,7 @@ error parameter when signaling completion.

#### Dealing with the response - Promises

If `Promise` is available, `request()` becomes a Promise capable library -
If `Promise` is available, `request` becomes a Promise capable library -
and chaining of `then`s becomes possible:

```js
Expand Down

0 comments on commit 08daa24

Please sign in to comment.