Skip to content

Commit

Permalink
Fix deprecation: (x...) -> (x...,)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Nov 27, 2017
1 parent 13762d1 commit ceeb8ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ProgressMeter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ end
String constructor for BarGlyphs - will split the string into 5 chars
"""
function BarGlyphs(s::AbstractString)
glyphs = (s...)
glyphs = (s...,)
if !isa(glyphs, NTuple{5,Char})
error("""
Invalid string in BarGlyphs constructor.
Expand Down
2 changes: 1 addition & 1 deletion test/test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function testfunc14(barglyphs)
ProgressMeter.next!(p)
end
# with the 5 char constructor
chars = (barglyphs...)
chars = (barglyphs...,)
p = ProgressMeter.Progress(n, barglyphs=ProgressMeter.BarGlyphs(chars...))
for i in 1:n
sleep(0.1)
Expand Down

0 comments on commit ceeb8ba

Please sign in to comment.