Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -465,17 +465,17 @@ julia> LinRange(1.5, 5.5, 9)

Compared to using [`range`](@ref), directly constructing a `LinRange` should
have less overhead but won't try to correct for floating point errors:
```julia
```jldoctest
julia> collect(range(-0.1, 0.3, length=5))
5-element Array{Float64,1}:
5-element Vector{Float64}:
-0.1
0.0
0.1
0.2
0.3

julia> collect(LinRange(-0.1, 0.3, 5))
5-element Array{Float64,1}:
5-element Vector{Float64}:
-0.1
-1.3877787807814457e-17
0.09999999999999999
Expand Down