Skip to content

Commit

Permalink
linspace: oops, forgot the ridiculous, arbitrary default of 50.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Mar 25, 2015
1 parent 1ef8a7e commit a5f8705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/range.jl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function linspace{T<:FloatingPoint}(start::T, stop::T, len::Int)
end
return LinSpace(start, stop, len, max(1,n))
end
linspace(start::Real, stop::Real, len::Real) =
linspace(start::Real, stop::Real, len::Real=50) =
linspace(promote(FloatingPoint(start), FloatingPoint(stop))..., Int(len))

show(io::IO, r::LinSpace) = print(io, "linspace($(first(r)),$(last(r)),$(length(r)))")
Expand Down

0 comments on commit a5f8705

Please sign in to comment.