Skip to content

Commit d23397e

Browse files
authored
Fix on-disk sampling example
1 parent 9bc34b1 commit d23397e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ with `julia -t6 --gcthreads=6,1` on my machine
6262

6363
```julia
6464
function psample_large_hdf5_file(filename, rngs, n, alg)
65-
rsv = [ReservoirSampler{DATATYPE}(rngs[i], n, alg) for i in 1:Threads.nthreads()]
65+
rsv = [ReservoirSampler{dtype}(rngs[i], n, alg) for i in 1:Threads.nthreads()]
6666
h5open(filename, "r") do file
6767
dset = file["data"]
6868
for c in chunks(1:numchunks; n=ceil(Int, numchunks/Threads.nthreads()))

0 commit comments

Comments
 (0)