Skip to content

Commit cb6bd24

Browse files
committed
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.
1 parent 66b04f3 commit cb6bd24

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

doc/src/manual/conversion-and-promotion.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ actual Julia behaviour. This is the actual implementation in Julia:
134134
```julia
135135
convert(::Type{T}, z::Complex) where {T<:Real} =
136136
(imag(z) == 0 ? convert(T, real(z)) : throw(InexactError()))
137-
138-
julia> convert(Bool, 1im)
139-
ERROR: InexactError()
140-
in convert(::Type{Bool}, ::Complex{Int64}) at ./complex.jl:18
141-
...
142137
```
143138

144139
### [Case Study: Rational Conversions](@id man-rational-conversion)

0 commit comments

Comments
 (0)