From cb6bd24ae0fbee08999d831a5c69c16793a3c6c3 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Sun, 14 May 2017 15:24:40 +1200 Subject: [PATCH] Edit manual/conversion-and-promotion.md The REPL example is basicalyl exactly as as above, so it does not add anything to the latter bit about the actual convert methods. --- doc/src/manual/conversion-and-promotion.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/doc/src/manual/conversion-and-promotion.md b/doc/src/manual/conversion-and-promotion.md index 0eecb4d5a943e1..a6266a2e6f5ea3 100644 --- a/doc/src/manual/conversion-and-promotion.md +++ b/doc/src/manual/conversion-and-promotion.md @@ -134,11 +134,6 @@ actual Julia behaviour. This is the actual implementation in Julia: ```julia convert(::Type{T}, z::Complex) where {T<:Real} = (imag(z) == 0 ? convert(T, real(z)) : throw(InexactError())) - -julia> convert(Bool, 1im) -ERROR: InexactError() - in convert(::Type{Bool}, ::Complex{Int64}) at ./complex.jl:18 - ... ``` ### [Case Study: Rational Conversions](@id man-rational-conversion)