Skip to content

Commit ea51a88

Browse files
committed
doc code fix
1 parent e3e17ce commit ea51a88

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/v14_migration_guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Previously, it was possible to directly index problems to query them for their p
139139
```@example v14_migration_4
140140
using Catalyst
141141
rn = @reaction_network begin
142-
(p,d), 0 <--> X
142+
(p,d), 0 <--> X
143143
end
144144
u0 = [:X => 1.0]
145145
ps = [:p => 1.0, :d => 0.2]
@@ -166,18 +166,18 @@ While it is possible to update e.g. `ODEProblem`s using the [`remake`](@ref simu
166166
```@example v14_migration_5
167167
using Catalyst, OrdinaryDiffEq
168168
rn = @reaction_network begin
169-
(k1,k2), X1 <--> X2
169+
(k1,k2), X1 <--> X2
170170
end
171171
u0 = [:X1 => 1.0, :X2 => 2.0]
172172
ps = [:k1 => 0.5, :k2 => 3.0]
173173
oprob = ODEProblem(rn, u0, (0.0, 10.0), ps; remove_conserved = true)
174-
sol(oprob)
174+
solve(oprob)
175175
# hide
176176
```
177177
is perfectly fine, attempting to then modify any initial conditions or the value of the conservation constant in `oprob` will silently fail:
178178
```@example v14_migration_5
179179
oprob_remade = remake(oprob; u0 = [:X1 => 5.0]) # NEVER do this.
180-
sol(oprob)
180+
solve(oprob_remade)
181181
# hide
182182
```
183183
This might generate a silent error, where the remade problem is different from the intended one (the value of the conserved constant will not be updated correctly).

0 commit comments

Comments
 (0)