diff --git a/README.md b/README.md index 44ff97d..89da8c0 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ const options = { }; // The parameters can be Node Buffers // data is the same as usual with an additional getBuffer() function -compareImages(image1, image2, options, function (err, data) { +compare(image1, image2, options, function (err, data) { if (err) { console.log('An error!') } else { @@ -141,7 +141,8 @@ compareImages(image1, image2, options, function (err, data) { */ } -); +}); +``` ### Node.js