Skip to content

Commit ee811ac

Browse files
authored
remove allocation due to string concat in depwarn (#12)
* remove allocation due to string concat in depwarn * trim whitespace
1 parent 1cfadc4 commit ee811ac

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "LegendrePolynomials"
22
uuid = "3db4a2ba-fc88-11e8-3e01-49c72059a882"
3-
version = "0.3.5"
3+
version = "0.3.6"
44

55
[deps]
66
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"

src/LegendrePolynomials.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ struct LegendrePolynomialIterator{T, L <: Union{Integer, Nothing}, V}
107107
x :: V
108108
lmax :: L
109109
function LegendrePolynomialIterator{T,L,V}(x::V, lmax::L) where {T, L <: Union{Integer, Nothing}, V}
110-
Base.depwarn("LegendrePolynomialIterator will not be a part of the public API"*
111-
" from the next minor release", :LegendrePolynomialIterator)
110+
Base.depwarn("LegendrePolynomialIterator will not be a part of the public API from the next minor release", :LegendrePolynomialIterator)
112111
checkdomain(x)
113112
new{T,L,V}(x, lmax)
114113
end

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tohyper(x) = Hyper(x, one(x), one(x), zero(x))
3535
end
3636

3737
@testset "Pl" begin
38-
x = 2rand() - 1
38+
x = 2rand() - 1
3939
lmax = 5
4040
P = collectPl(x, lmax = lmax)
4141
P2 = collectPlm(x, lmax = lmax, m = 0)
@@ -156,7 +156,7 @@ end
156156
end
157157

158158
@testset "dPl/dx" begin
159-
x = 2rand() - 1
159+
x = 2rand() - 1
160160
xh = tohyper(x)
161161
lmax = 5
162162
P = eps1.(collectPl(xh, lmax = lmax))
@@ -192,7 +192,7 @@ end
192192
end
193193

194194
@testset "d^2Pl/dx^2" begin
195-
x = 2rand() - 1
195+
x = 2rand() - 1
196196
xh = tohyper(x)
197197
lmax = 5
198198
P = eps1eps2.(collectPl(xh, lmax = lmax))

0 commit comments

Comments
 (0)