Skip to content

Commit

Permalink
doc: change encoding to decoding
Browse files Browse the repository at this point in the history
As per the example, `querystring.parse` actually does URL decoding, not
encoding.

PR-URL: nodejs#15706
Reviewed-By: Timothy Gu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
  • Loading branch information
thefourtheye authored and jasnell committed Oct 2, 2017
1 parent a6b47a2 commit 8865542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ querystring.parse(str, '\n', '=');
```

*Note*: This function is not completely equivalent to `querystring.parse()`. One
difference is that `querystring.parse()` does url encoding:
difference is that `querystring.parse()` does url decoding:

```sh
> querystring.parse('%E5%A5%BD=1', '\n', '=');
Expand Down

0 comments on commit 8865542

Please sign in to comment.