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 committed Aug 29, 2020
1 parent 589b2a1 commit c2996ce
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 @@ -3163,9 +3163,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 c2996ce

Please sign in to comment.