From fe78a3484528e9af935a371cd5f81dc85a858733 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Thu, 21 Sep 2023 23:14:17 +0900 Subject: [PATCH] doc: update output of example in `mimeParams.set()` Actual output of example in `mimeParams.set()` is mismatched. PR-URL: https://github.com/nodejs/node/pull/49718 Reviewed-By: Matthew Aitken Reviewed-By: Luigi Pinca --- doc/api/util.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/util.md b/doc/api/util.md index a8deb083473a8c..8939844760e409 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -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 @@ -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()`