From 3fb5c6d3c5ecaf361493f95271fd8bdd408a74eb Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Tue, 29 Nov 2022 19:25:41 +0900 Subject: [PATCH] doc: fix actual result of example is different in stream Error message of JSON.parse may be changed with current node version. For reference, actual result is same with previous node version(v16.18.1). PR-URL: https://github.com/nodejs/node/pull/45619 Reviewed-By: Kohei Ueno Reviewed-By: Daeyeon Jeong --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index f92a68bc4782e8..0f16f00ed34653 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -172,7 +172,7 @@ server.listen(1337); // $ curl localhost:1337 -d "\"foo\"" // string // $ curl localhost:1337 -d "not json" -// error: Unexpected token o in JSON at position 1 +// error: Unexpected token 'o', "not json" is not valid JSON ``` [`Writable`][] streams (such as `res` in the example) expose methods such as