Skip to content

Commit

Permalink
Adjust example code for imageForSize helper
Browse files Browse the repository at this point in the history
The imageForSize method seems be accessible through the `helpers` namespace which doesn't reflect in the docs.
  • Loading branch information
ttillberg authored Apr 18, 2018
1 parent 3cbe033 commit 5b7b2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/image-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
* Images do not scale up.
*
* @example
* const url = client.image.imageForSize(product.variants[0].image, {maxWidth: 50, maxHeight: 50});
* const url = client.image.helpers.imageForSize(product.variants[0].image, {maxWidth: 50, maxHeight: 50});
*
* @memberof ImageHelpers
* @method imageForSize
Expand Down

0 comments on commit 5b7b2c1

Please sign in to comment.