Skip to content

Commit 2f1ad05

Browse files
TorkelEisaacsas
andauthored
Update src/dsl.jl
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 970db09 commit 2f1ad05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dsl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ function push_reactions!(reactions::Vector{DSLReaction}, subs::ExprValues,
421421
# The rates, substrates, products, and metadata may be in a tuple form (e.g. `k, (X,Y) --> 0`).
422422
# This finds these tuples' lengths (or 1 for non-tuple forms). Inconsistent lengths yield error.
423423
lengs = (tup_leng(subs), tup_leng(prods), tup_leng(rate), tup_leng(metadata))
424-
maxl = maximum(lengs)
424+
maxlen = maximum(lengs)
425425
any(!(leng == 1 || leng == maxl) for leng in lengs) &&
426426
error("Malformed reaction, rate: $rate, subs: $subs, prods: $prods, metadata: $metadata.")
427427

0 commit comments

Comments
 (0)