Skip to content

Commit

Permalink
[meta] fix README.md (#399)
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 c44f0c5 commit cce2082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -345,7 +345,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 cce2082

Please sign in to comment.