Skip to content

Commit 4abda1b

Browse files
Fix linear operator docs
Fixes #2877 (comment)
1 parent 08e5b34 commit 4abda1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/semilinear/Linear.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ you will need to install some of the other libraries listed in the navigation ba
100100

101101
```julia
102102
using OrdinaryDiffEqLinear, SciMLOperators
103-
function update_func(A, u, p, t)
103+
function update_func!(A, u, p, t)
104104
A[1, 1] = 0
105105
A[2, 1] = sin(u[1])
106106
A[1, 2] = -1
107107
A[2, 2] = 0
108108
end
109109
A0 = ones(2, 2)
110-
A = MatrixOperator(A0, update_func = update_func)
110+
A = MatrixOperator(A0, update_func! = update_func!)
111111
u0 = ones(2)
112112
tspan = (0.0, 30.0)
113113
prob = ODEProblem(A, u0, tspan)

0 commit comments

Comments
 (0)