Skip to content

Commit 7a0dd46

Browse files
committed
Fix pasting in docs.
1 parent 58106dd commit 7a0dd46

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/src/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ Collaboration is welcome! This is still a work-in-progress. See [the roadmap](ht
3333

3434
```julia
3535
julia> Pkg.add("AxisArrays")
36-
using AxisArrays, Unitful
37-
import Unitful: s, ms, µs
36+
julia> using AxisArrays, Unitful
37+
julia> import Unitful: s, ms, µs
3838

3939
julia> rng = MersenneTwister(123) # Seed a random number generator for repeatable examples
40-
fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
41-
y = randn(rng, 60*fs+1)*3
42-
for spk = (sin.(0.8:0.2:8.6) .* [0:0.01:.1; .15:.1:.95; 1:-.05:.05] .* 50,
40+
julia> fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
41+
julia> y = randn(rng, 60*fs+1)*3
42+
julia> for spk = (sin.(0.8:0.2:8.6) .* [0:0.01:.1; .15:.1:.95; 1:-.05:.05] .* 50,
4343
sin.(0.8:0.4:8.6) .* [0:0.02:.1; .15:.1:1; 1:-.2:.1] .* 50)
4444
i = rand(rng, round(Int,.001fs):1fs)
4545
while i+length(spk)-1 < length(y)

0 commit comments

Comments
 (0)