Docs: fix typo in gif example (#3201)

This commit is contained in:
David Humphrey 2022-04-22 11:09:28 -04:00 committed by GitHub
parent d396a4e65d
commit 75e5afcd42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ The first entry in the palette is reserved for transparency.
// Convert PNG to GIF // Convert PNG to GIF
await sharp(pngBuffer) await sharp(pngBuffer)
.gif() .gif()
.toBuffer()); .toBuffer();
``` ```
```javascript ```javascript

View File

@ -516,7 +516,7 @@ function webp (options) {
* // Convert PNG to GIF * // Convert PNG to GIF
* await sharp(pngBuffer) * await sharp(pngBuffer)
* .gif() * .gif()
* .toBuffer()); * .toBuffer();
* *
* @example * @example
* // Convert animated WebP to animated GIF * // Convert animated WebP to animated GIF