Skip to content

Commit

Permalink
Edit manual/conversion-and-promotion.md
Browse files Browse the repository at this point in the history
The REPL example is basically exactly as above, and does not add
anything to the latter bit about the actual convert methods.
  • Loading branch information
mortenpi committed May 25, 2017
1 parent 6e5c55d commit 96b65f1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions doc/src/manual/conversion-and-promotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96b65f1

Please sign in to comment.