doc: make minor improvements to query string sentence in http2.md

PR-URL: https://github.com/nodejs/node/pull/34929
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>
This commit is contained in:
Rich Trott committed 2020-08-29 08:00:28 -07:00
1 parent 589b2a1244
commit c2996ce69c
1 file changed
+3 -3
+3 -3
View File
@@ -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