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 <shishugi@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
  • Loading branch information
Trott authored and addaleax committed Sep 22, 2020
1 parent 1d0a8b7 commit bf1dcc9
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 bf1dcc9

Please sign in to comment.