Skip to content

Commit

Permalink
deduplicate examples per suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
adienes committed Oct 31, 2023
1 parent 95cd537 commit 002f8b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions base/complex.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,6 @@ Convert real numbers or arrays to complex. `i` defaults to zero.
```jldoctest
julia> complex(7)
7 + 0im
julia> complex([1, 2, 3])
3-element Vector{Complex{Int64}}:
1 + 0im
2 + 0im
3 + 0im
```
"""
complex(z::Complex) = z
Expand Down
10 changes: 2 additions & 8 deletions base/float.jl
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ See also: [`complex`](@ref), [`oftype`](@ref), [`convert`](@ref).
# Examples
```jldoctest
julia> float(1:1000)
1.0:1.0:1000.0
julia> float(typemax(Int32))
2.147483647e9
```
Expand Down Expand Up @@ -1171,11 +1168,8 @@ of `A` in accordance with the behavior of `convert(T, A)` given output type `T`.
# Examples
```jldoctest
julia> float([1, 2, 3])
3-element Vector{Float64}:
1.0
2.0
3.0
julia> float(1:1000)
1.0:1.0:1000.0
```
"""
float(A::AbstractArray{<:AbstractFloat}) = A
Expand Down

0 comments on commit 002f8b6

Please sign in to comment.