Skip to content

Commit

Permalink
doc: update output of example in mimeParams.set()
Browse files Browse the repository at this point in the history
Actual output of example in `mimeParams.set()` is mismatched.

PR-URL: #49718
Reviewed-By: Matthew Aitken <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
deokjinkim authored and ruyadorno committed Sep 28, 2023
1 parent 8a7c101 commit fe78a34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,7 @@ const { params } = new MIMEType('text/plain;foo=0;bar=1');
params.set('foo', 'def');
params.set('baz', 'xyz');
console.log(params.toString());
// Prints: foo=def&bar=1&baz=xyz
// Prints: foo=def;bar=1;baz=xyz
```

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

### `mimeParams.values()`
Expand Down

0 comments on commit fe78a34

Please sign in to comment.