Skip to content

Commit

Permalink
[meta] fix README.md
Browse files Browse the repository at this point in the history
- `defaultEncoder`=> `defaultDecoder`
  • Loading branch information
mizozobu authored and ljharb committed Mar 11, 2021
1 parent 4e2911f commit 834f690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -352,7 +352,7 @@ var encoded = qs.stringify({ a: { b: 'c' } }, { encoder: function (str, defaultE
The type argument is also provided to the decoder:

```javascript
var decoded = qs.parse('x=z', { decoder: function (str, defaultEncoder, charset, type) {
var decoded = qs.parse('x=z', { decoder: function (str, defaultDecoder, charset, type) {
if (type === 'key') {
return // Decoded key
} else if (type === 'value') {
Expand Down

0 comments on commit 834f690

Please sign in to comment.