Skip to content

Commit

Permalink
doc: make minor improvements to query string sentence in http2.md
Browse files Browse the repository at this point in the history
PR-URL: #34929
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Ricky Zhou <[email protected]>
  • Loading branch information
Trott authored and addaleax committed Sep 22, 2020
1 parent 3c4abe0 commit 0695e24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3073,9 +3073,9 @@ Url {
href: '/status?name=ryan' }
```

To extract the parameters from the query string, the
`require('querystring').parse` function can be used, or
`true` can be passed as the second argument to `require('url').parse`.
To obtain the parameters from the query string, use the
`require('querystring').parse()` function or pass
`true` as the second argument to `require('url').parse()`.

```console
$ node
Expand Down

0 comments on commit 0695e24

Please sign in to comment.