Skip to content

Commit

Permalink
Let print of nothing fallback to show
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored May 28, 2019
1 parent 89976eb commit cea7939
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion base/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,6 @@ function show(io::IO, tn::Core.TypeName)
end

show(io::IO, ::Nothing) = print(io, "nothing")
print(io::IO, ::Nothing) = print(io, "nothing")
show(io::IO, b::Bool) = print(io, get(io, :typeinfo, Any) === Bool ? (b ? "1" : "0") : (b ? "true" : "false"))
show(io::IO, n::Signed) = (write(io, string(n)); nothing)
show(io::IO, n::Unsigned) = print(io, "0x", string(n, pad = sizeof(n)<<1, base = 16))
Expand Down

0 comments on commit cea7939

Please sign in to comment.