From c0df265fea28852d6a47769132b5f92b65bff4af 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 92f77f61a9d28d..1726635b55b9d4 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