diff --git a/docs/src/content/docs/api-resize.md b/docs/src/content/docs/api-resize.md index 8a452eaa..7291f9d9 100644 --- a/docs/src/content/docs/api-resize.md +++ b/docs/src/content/docs/api-resize.md @@ -17,7 +17,7 @@ When both a `width` and `height` are provided, the possible methods by which the Some of these values are based on the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property. -Examples of various values for the fit property when resizing +Examples of various values for the fit property when resizing When using a **fit** of `cover` or `contain`, the default **position** is `centre`. Other options are: - `sharp.position`: `top`, `right top`, `right`, `right bottom`, `bottom`, `left bottom`, `left`, `left top`. diff --git a/lib/resize.js b/lib/resize.js index 6b321fbe..348fbd81 100644 --- a/lib/resize.js +++ b/lib/resize.js @@ -129,7 +129,7 @@ function isResizeExpected (options) { * * Some of these values are based on the [object-fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) CSS property. * - * Examples of various values for the fit property when resizing + * Examples of various values for the fit property when resizing * * When using a **fit** of `cover` or `contain`, the default **position** is `centre`. Other options are: * - `sharp.position`: `top`, `right top`, `right`, `right bottom`, `bottom`, `left bottom`, `left`, `left top`.