Skip to content

Commit 2462e38

Browse files
alecarraroschillic
andauthored
Apply suggestions from code review
Co-authored-by: Christian Schilling <git@christianschilling.net>
1 parent 421553f commit 2462e38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macros.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ function constructor_input(lhs, rhs, set, parametric)
697697
if field_names == (:A, :AS)
698698
field_names = (:AS,)
699699
@assert var_names == (:A, :AS)
700-
var_names = (:AS,)
700+
var_names = (var_names[2],)
701701
elseif field_names == (:A, :B, :AS, :BS)
702702
@assert (var_names[3], var_names[4]) == (:AS, :BS)
703703
field_names = (:AS, :BS)
@@ -726,7 +726,7 @@ function extract_set_parameter(expr, state, input, noise, parametric) # input =>
726726
return Set, :BS
727727
elseif @capture(expr, x_ Set_) && x == state
728728
return Set, :X
729-
elseif @capture(expr, x_ Set_) && x == input
729+
elseif @capture(expr, u_ Set_) && u == input
730730
return Set, :U
731731
end
732732
elseif @capture(expr, x_ Set_)

0 commit comments

Comments
 (0)