From 202083999ed3dc47effdef81bd5c0d1ecfae3da6 Mon Sep 17 00:00:00 2001 From: Pedro Poveda Date: Sun, 31 Jan 2021 15:44:13 -0500 Subject: [PATCH] Docs: add closing parenthesis so code example runs --- docs/api-constructor.md | 2 +- lib/constructor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-constructor.md b/docs/api-constructor.md index eb4fd1f0..0fb93a54 100644 --- a/docs/api-constructor.md +++ b/docs/api-constructor.md @@ -116,7 +116,7 @@ await sharp({ sigma: 30 } } -}.toFile('noise.png'); +}).toFile('noise.png'); ``` - Throws **[Error][10]** Invalid parameters diff --git a/lib/constructor.js b/lib/constructor.js index 22626f19..817fc27e 100644 --- a/lib/constructor.js +++ b/lib/constructor.js @@ -117,7 +117,7 @@ const debuglog = util.debuglog('sharp'); * sigma: 30 * } * } - * }.toFile('noise.png'); + * }).toFile('noise.png'); * * @param {(Buffer|Uint8Array|Uint8ClampedArray|string)} [input] - if present, can be * a Buffer / Uint8Array / Uint8ClampedArray containing JPEG, PNG, WebP, AVIF, GIF, SVG, TIFF or raw pixel image data, or