From f1bf88395926d84fb75cc055849624caad8f0144 Mon Sep 17 00:00:00 2001 From: h7lin Date: Fri, 13 Feb 2015 11:59:11 +0800 Subject: [PATCH] doc: fix default value of opts.decodeURIComponent 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 --- doc/api/querystring.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/querystring.markdown b/doc/api/querystring.markdown index e907c4e7d5a..ed1ce9f7c05 100644 --- a/doc/api/querystring.markdown +++ b/doc/api/querystring.markdown @@ -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: