Skip to content

Commit

Permalink
Merge pull request #185 from JuliaGizmos/pv/print
Browse files Browse the repository at this point in the history
fix show method for Signal
  • Loading branch information
SimonDanisch committed Aug 30, 2018
2 parents 69ea49e + c4d2c56 commit 3365626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.jl
Expand Up @@ -142,7 +142,7 @@ end

function Base.show(io::IO, n::Signal)
active_str = isactive(n) ? "(active)" : ""
write(io, "$(n.id): \"$(n.name)\" = $(n.value) $(eltype(n)) $active_str")
write(io, "$(n.id): \"$(n.name)\" = $(something(n.value, "nothing")) $(eltype(n)) $active_str")
end

value(n) = n
Expand Down

0 comments on commit 3365626

Please sign in to comment.