From b9b47378b9d876efc9bacc535fe5b0b2116582e2 Mon Sep 17 00:00:00 2001 From: Brian Evans <53117772+mrbrianevans@users.noreply.github.com> Date: Fri, 26 Aug 2022 21:20:38 +0100 Subject: [PATCH] doc: Fix error in readme example The readme sample code for NDJSON contained an error. It was a mixture between arrow function syntax and keyword function syntax. I removed the erroneous character to make the code correct. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 451c6bb..36f03ab 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ fs.createReadStream(file) .on('data', function (obj) { //each chunk now is a js object }) - .on("error", function(error) => { + .on("error", function(error) { //handling parsing errors }) ```