Skip to content

Commit 4477098

Browse files
committed
docs: add colon to default value if it is a symbol
1 parent 776e6f1 commit 4477098

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/dispatch.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ end
413413
function _myprint(dict)
414414
lines_out = IOBuffer()
415415
for (k, v) in dict
416-
println(lines_out, " - `$(k)`: $(v[2]). Default: `$(v[1])`\n")
416+
# add ":" to symbols
417+
default_value = "`$(typeof(v[1]) == Symbol ? ":" : "")$(v[1])`"
418+
println(lines_out, " - `$(k)`: $(v[2]). Default: $(default_value)\n")
417419
end
418420
return String(take!(lines_out))
419421
end

0 commit comments

Comments
 (0)