Skip to content

Commit a88aa45

Browse files
committed
Add "using Interpolations" to knots docstring
I thought it wasn't an issue, because running docs/make.jl would error on the first time but not the 2nd. But this just doesn't error
1 parent 9d8e5d5 commit a88aa45

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/iterate.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,18 @@ infinite sequence of knots.
9797
9898
# Example
9999
```jldoctest
100-
julia> etp = LinearInterpolation([1.0, 1.2, 2.3, 3.0], rand(4); extrapolation_bc=Periodic())
100+
julia> using Interpolations;
101+
102+
julia> etp = LinearInterpolation([1.0, 1.2, 2.3, 3.0], rand(4); extrapolation_bc=Periodic());
103+
101104
julia> Iterators.take(knots(etp), 5) |> collect
102105
5-element Array{Float64,1}:
103106
1.0
104107
1.2
105108
2.3
106109
3.0
107110
3.2
111+
108112
```
109113
"""
110114
function knots(itp::AbstractInterpolation)

0 commit comments

Comments
 (0)