Skip to content

Commit b3d53f3

Browse files
authored
Update docs/general/colors.md
1 parent 470f992 commit b3d53f3

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)