Skip to content

Commit

Permalink
Make the hist closure depwarn more informative (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan authored May 14, 2017
1 parent 1ac90eb commit 66b2b3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hist.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import Base: show, ==, push!, append!, float, norm, normalize, normalize!
# remove "closed=:left" in tests for all lines marked "FIXME: closed".
function _check_closed_arg(closed::Symbol, funcsym)
if closed == :default_left
Base.depwarn("Default for keyword argument \"closed\" has changed from :right to :left.", funcsym)
Base.depwarn("Default for keyword argument \"closed\" has changed from :right to :left.\n" *
"To avoid this warning, specify closed=:right or closed=:left as appropriate.",
funcsym)
:left
else
closed
Expand Down

0 comments on commit 66b2b3e

Please sign in to comment.