Skip to content

Commit 4a26b06

Browse files
authored
docs: fix typo in p.set example in the documentation of matrices (#3080)
1 parent f156a02 commit 4a26b06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/matrices.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ console.log()
6060
// this will mutate the matrix
6161
console.log('set and get a value')
6262
const p = math.matrix([[1, 2], [3, 4]])
63-
p.set([0, 10], 5)
63+
p.set([0, 1], 5)
6464
print(p) // [[1, 5], [3, 4]]
6565
const p21 = p.get([1, 0])
6666
print(p21) // 3

0 commit comments

Comments
 (0)