Skip to content

Commit 24abe21

Browse files
authored
explicit name argument in example
`@named` does not understand to forward the name to the inner function `ODESystem`
1 parent 7d3b002 commit 24abe21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/basics/Composition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ end
3232

3333
@parameters t
3434
D = Differential(t)
35-
@named connected = compose(ODESystem([
35+
connected = compose(ODESystem([
3636
decay2.f ~ decay1.x
3737
D(decay1.f) ~ 0
38-
], t), decay1, decay2)
38+
], t; name=:connected), decay1, decay2)
3939

4040
equations(connected)
4141

0 commit comments

Comments
 (0)