Skip to content

Commit

Permalink
Merge pull request #84 from martinholters/fixdeps
Browse files Browse the repository at this point in the history
Fix deprecation: (x...) -> (x...,)
  • Loading branch information
timholy authored Nov 27, 2017
2 parents 13762d1 + ceeb8ba commit f7db3a5
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 f7db3a5

Please sign in to comment.