diff --git a/src/operators.jl b/src/operators.jl index a986ee50a..15a9ce767 100644 --- a/src/operators.jl +++ b/src/operators.jl @@ -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