Skip to content

Commit

Permalink
Merge pull request #1061 from JuliaSymbolics/myb/op
Browse files Browse the repository at this point in the history
Fix state machine operator printing
  • Loading branch information
YingboMa authored Feb 19, 2024
2 parents dd239c6 + 8f41315 commit 8f5d3bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ for (s, T) in [(:timeInState, :Real),
if isempty(args)
print(io, $s, "()")
else
print(io, $s, "(", nameof(only(args)), ")")
arg = only(args)
print(io, $s, "(", arg isa Number ? arg : nameof(arg), ")")
end
end
end
Expand Down

0 comments on commit 8f5d3bc

Please sign in to comment.