Skip to content

Commit

Permalink
Merge pull request JuliaLang#4411 from randyzwitch/master
Browse files Browse the repository at this point in the history
Use proper version of 'too' in error message
  • Loading branch information
Keno committed Oct 1, 2013
2 parents 2a4aab0 + ac2df31 commit 883cab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/socket.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function IPv4(host::Integer)
if host < 0
error("IP address may not be negative")
elseif typemax(typeof(host)) > typemax(Uint32) && host > typemax(Uint32)
error("Number to large for IP Address")
error("Number too large for IP Address")
else
return IPv4(uint32(host))
end
Expand Down Expand Up @@ -61,7 +61,7 @@ function IPv6(host::Integer)
# We allow passing bigger integer types, but need to be careful to avoid overflow
# Let's hope promotion rules are sensible
elseif typemax(typeof(host)) > typemax(Uint128) && host > typemax(Uint128)
error("Number to large for IP Address")
error("Number too large for IP Address")
else
return IPv6(uint128(host))
end
Expand Down

0 comments on commit 883cab4

Please sign in to comment.