Skip to content

Commit 3ef53bd

Browse files
authored
OneTo -> oneto (#66)
1 parent 2f3b14e commit 3ef53bd

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ApproxFunBase"
22
uuid = "fbd15aa5-315a-5a7d-a8a4-24992e37be05"
3-
version = "0.3.12"
3+
version = "0.3.13"
44

55
[deps]
66
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"

src/ApproxFunBase.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ export pad!, pad, chop!, sample,
9595
export .., Interval, ChebyshevInterval, leftendpoint, rightendpoint, endpoints, cache
9696

9797

98+
if VERSION < v"1.6-"
99+
oneto(n) = Base.OneTo(n)
100+
else
101+
import Base: oneto
102+
end
103+
98104

99105
include("LinearAlgebra/LinearAlgebra.jl")
100106
include("Fun.jl")

src/Space.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ transpose(sp::Space) = sp # default no-op
5353
# the default is all spaces have one-coefficient blocks
5454
blocklengths(S::Space) = Ones{Int}(dimension(S))
5555
blocksize(S::Space) = (length(blocklengths(S)),)
56-
blockaxes(S::Space) = (Block.(Base.OneTo(length(blocklengths(S)))),)
56+
blockaxes(S::Space) = (Block.(oneto(length(blocklengths(S)))),)
5757
function blockaxes(A::Space, d)
5858
@assert d == 1
5959
blockaxes(A)[1]

0 commit comments

Comments
 (0)