Skip to content

Commit f2e86ad

Browse files
committed
fix: Example step 2 code in README.md
Aligned the code in README.md with the one used in example.js.
1 parent 280f5d3 commit f2e86ad

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,14 @@ If you prefer to learn by code rather than have step by step instructions take a
184184
let filterX = x < filter.length ? 0 : 1;
185185
filters[filterY][filterX] += weights[y][x];
186186
matrixLog
187-
.at({ x, y })
187+
.at({
188+
x: filterX,
189+
y: filterY
190+
})
188191
.add({
189192
name: 'weights',
190-
x: filterX,
191-
y: filterY,
193+
x,
194+
y,
192195
width: weights[0].length,
193196
height: weights.length
194197
});

0 commit comments

Comments
 (0)