Skip to content

Commit 1c14374

Browse files
committed
Merge pull request #1459 from toivoh/show_symbol_with_colon
RFC: Show symbols with a colon
2 parents 703c742 + 0144695 commit 1c14374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/show.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ show(io, x) = ccall(:jl_show_any, Void, (Any, Any,), io::IOStream, x)
88
showcompact(io, x) = show(io, x)
99
showcompact(x) = showcompact(OUTPUT_STREAM::IOStream, x)
1010

11-
show(io, s::Symbol) = print(io, s)
11+
show(io, s::Symbol) = show_indented(io, s)
1212
show(io, tn::TypeName) = show(io, tn.name)
1313
show(io, ::Nothing) = print(io, "nothing")
1414
show(io, b::Bool) = print(io, b ? "true" : "false")

0 commit comments

Comments
 (0)