Docs: update new Buffer() to Buffer.from() (#1273)

This commit is contained in:
Muhammad Faheem Akhtar 2018-06-26 12:19:27 +05:00 committed by Lovell Fuller
parent 1999c7103c
commit 3d7e8ef432

View File

@ -48,7 +48,7 @@ sharp('input.jpg')
``` ```
```javascript ```javascript
const roundedCorners = new Buffer( const roundedCorners = Buffer.from(
'<svg><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>' '<svg><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>'
); );