Skip to content

Commit f5cfe10

Browse files
committed
fix typo in docstring
1 parent b880720 commit f5cfe10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/callbacks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Creates a callback condition for a [`ComponentCallback`].
3737
Consider a component model with states `[:u1, :u2]`, inputs `[:i]`, outputs
3838
`[:o]` and parameters `[:p1, :p2]`.
3939
40-
ComponentCondition([:u1, :o], [:p1]) do (u, p, t)
40+
ComponentCondition([:u1, :o], [:p1]) do u, p, t
4141
# access states symbolicially or via int index
4242
u[:u1] == u[1]
4343
u[:o] == u[2]
@@ -81,7 +81,7 @@ Creates a callback condition for a [`ComponentCallback`].
8181
Consider a component model with states `[:u1, :u2]`, inputs `[:i]`, outputs
8282
`[:o]` and parameters `[:p1, :p2]`.
8383
84-
ComponentAffect([:u1, :o], [:p1]) do (u, p, ctx)
84+
ComponentAffect([:u1, :o], [:p1]) do u, p, ctx
8585
u[:u1] = 0 # change the state
8686
p[:p1] = 1 # change the parameter
8787
@info "Changed :u1 and :p1 on vertex \$(ctx.vidx)" # access context

0 commit comments

Comments
 (0)