doc: fix default value of opts.decodeURIComponent
authorh7lin <i@h7lin.com>
Fri, 13 Feb 2015 03:59:11 +0000 (11:59 +0800)
committercjihrig <cjihrig@gmail.com>
Tue, 3 Mar 2015 15:03:42 +0000 (10:03 -0500)
In the documentation for querystring.parse, the documentation mentions
that the default value for options.decodeURIComponent is the
decodeURIComponent function, but it's actually the querystring.unescape
function.

PR-URL: https://github.com/joyent/node/pull/9259
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
doc/api/querystring.markdown

index e16e6e7..0168889 100644 (file)
@@ -42,7 +42,7 @@ characters.
 Options object may contain `maxKeys` property (equal to 1000 by default), it'll
 be used to limit processed keys. Set it to 0 to remove key count limitation.
 
-Options object may contain `decodeURIComponent` property (`decodeURIComponent` by default),
+Options object may contain `decodeURIComponent` property (`querystring.unescape` by default),
 it can be used to decode `non-utf8` encoding string if necessary.
 
 Example: