Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mauro-milella committed Oct 31, 2023
1 parent 02e34b8 commit 3147813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,9 @@ struct SyntaxBranch{T<:Connective} <: SyntaxTree
end

function SyntaxBranch(l::SyntaxLeaf, args...)
@assert length(args) == 0 "Leaf $(t) (type $(typeof(l))) is nullary, " *
@assert length(args) == 0 "Leaf $(l) (type $(typeof(l))) is nullary, " *
" and cannot take syntax children ($(length(args)) were given)."
return t
return l
end
end

Expand Down

0 comments on commit 3147813

Please sign in to comment.