Skip to content

Commit fe78a34

Browse files
deokjinkimruyadorno
authored andcommitted
doc: update output of example in mimeParams.set()
Actual output of example in `mimeParams.set()` is mismatched. PR-URL: #49718 Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8a7c101 commit fe78a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/util.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1334,7 +1334,7 @@ const { params } = new MIMEType('text/plain;foo=0;bar=1');
13341334
params.set('foo', 'def');
13351335
params.set('baz', 'xyz');
13361336
console.log(params.toString());
1337-
// Prints: foo=def&bar=1&baz=xyz
1337+
// Prints: foo=def;bar=1;baz=xyz
13381338
```
13391339

13401340
```cjs
@@ -1344,7 +1344,7 @@ const { params } = new MIMEType('text/plain;foo=0;bar=1');
13441344
params.set('foo', 'def');
13451345
params.set('baz', 'xyz');
13461346
console.log(params.toString());
1347-
// Prints: foo=def&bar=1&baz=xyz
1347+
// Prints: foo=def;bar=1;baz=xyz
13481348
```
13491349

13501350
### `mimeParams.values()`

0 commit comments

Comments
 (0)