Skip to content

Commit

Permalink
Avoid recursion in print_to_string. (JuliaLang#29957)
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt authored and KristofferC committed Nov 8, 2018
1 parent b166cf6 commit e4da437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/iobuffer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function IOBuffer(
maxsize::Integer=typemax(Int),
sizehint::Union{Integer,Nothing}=nothing)
if maxsize < 0
throw(ArgumentError("negative maxsize: $(maxsize)"))
throw(ArgumentError("negative maxsize"))
end
if sizehint !== nothing
sizehint!(data, sizehint)
Expand Down

0 comments on commit e4da437

Please sign in to comment.