Skip to content

Commit 07c702c

Browse files
committed
fix: missing !
1 parent aea4ecd commit 07c702c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constructors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ end
159159
# check if the body of loop is a block, if not convert it to a block issue#395
160160
function check_loopbody!(q)
161161
if q isa Expr && q.head == :for
162-
if Meta.isexpr(q.args[2], :block)
162+
if !Meta.isexpr(q.args[2], :block)
163163
q.args[2] = Expr(:block, q.args[2])
164164
else
165165
for arg in q.args[2].args

0 commit comments

Comments
 (0)