From 3a3365113bb1d48d5004580e174def9ced15c9c4 Mon Sep 17 00:00:00 2001 From: mohanaravind Date: Sat, 3 Feb 2018 20:59:23 -0500 Subject: [PATCH] Update README.md Removed the unnecessary trailing comma from example and added a missing curly bracket. Found this after realizing the sample code throws an exception --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6972c42..572ee95 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ compare(image1, image2, options, function (err, data) { } }); +} ``` ### Node.js @@ -191,7 +192,7 @@ const options = { const data = await compareImages( await fs.readFile('./demoassets/People.jpg'), await fs.readFile('./demoassets/People2.jpg'), - options, + options ); await fs.writeFile('./output.png', data.getBuffer());