Skip to content

Commit cea7939

Browse files
authored
Let print of nothing fallback to show
1 parent 89976eb commit cea7939

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

base/show.jl

-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,6 @@ function show(io::IO, tn::Core.TypeName)
585585
end
586586

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

0 commit comments

Comments
 (0)