Skip to content

Commit 8ce6921

Browse files
authored
Merge pull request #9 from JuliaPlots/fix1
Fix deprecated method.
2 parents 88ca926 + a309822 commit 8ce6921

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/NumericIO.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,7 @@ print_formatted(io::IO, v::Real, fmt::IOFormattingReal; showexp::Bool=true) =
391391
function string_formatted(v::Real, fmt::IOFormattingReal; showexp::Bool=true)
392392
s = IOBuffer()
393393
print_formatted(s, v, fmt, showexp=showexp)
394-
d = s.data
395-
resize!(d, s.size)
396-
return String(d)
394+
return String(take!(s))
397395
end
398396

399397

0 commit comments

Comments
 (0)