From 34e581ff3f9eb2a9bfee8626d8f7e71aff907e92 Mon Sep 17 00:00:00 2001 From: Tianyi Pu <44583944+putianyi889@users.noreply.github.com> Date: Sat, 22 Jan 2022 14:58:30 +0000 Subject: [PATCH] Fix `default` docstring (#4057) --- src/args.jl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/args.jl b/src/args.jl index b92198f7..17ce9f0f 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1058,10 +1058,14 @@ end # update the defaults globally """ -`default(key)` returns the current default value for that key -`default(key, value)` sets the current default value for that key -`default(; kw...)` will set the current default value for each key/value pair -`default(plotattributes, key)` returns the key from plotattributes if it exists, otherwise `default(key)` +`default(key)` returns the current default value for that key. + +`default(key, value)` sets the current default value for that key. + +`default(; kw...)` will set the current default value for each key/value pair. + +`default(plotattributes, key)` returns the key from plotattributes if it exists, otherwise `default(key)`. + """ function default(k::Symbol) k = get(_keyAliases, k, k)