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 basicalyl exactly as as above, so it does not add
anything to the latter bit about the actual convert methods.
  • Loading branch information
mortenpi committed May 14, 2017
1 parent 66b04f3 commit cb6bd24
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 cb6bd24

Please sign in to comment.