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