Skip to content

Commit 1901efe

Browse files
committed
Update docs/general/colors.md
1 parent cc6e584 commit 1901efe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/general/colors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ For example, you can fill a dataset with a pattern from an image.
104104
```javascript
105105
const img = new Image();
106106
img.src = 'https://example.com/my_image.png';
107-
img.onload = function() {
107+
img.onload = () => {
108108
const ctx = document.getElementById('canvas').getContext('2d');
109109
const fillPattern = ctx.createPattern(img, 'repeat');
110110

0 commit comments

Comments
 (0)