Skip to content

Commit

Permalink
docs: fix typo in p.set example in the documentation of matrices (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentTam committed Oct 16, 2023
1 parent f156a02 commit 4a26b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/matrices.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ console.log()
// this will mutate the matrix
console.log('set and get a value')
const p = math.matrix([[1, 2], [3, 4]])
p.set([0, 10], 5)
p.set([0, 1], 5)
print(p) // [[1, 5], [3, 4]]
const p21 = p.get([1, 0])
print(p21) // 3
Expand Down

0 comments on commit 4a26b06

Please sign in to comment.