Skip to content

Commit 97df1de

Browse files
authored
Update example.md
1 parent fa65fa5 commit 97df1de

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
@@ -14,7 +14,7 @@ julia> using StreamSampling, Statistics, Random
1414
julia> function monitor(stream, thr)
1515
rng = Xoshiro(42)
1616
# we use a reservoir sample of 10^4 elements
17-
rs = ReservoirSample(rng, Int, 10^4)
17+
rs = ReservoirSample{Int}(rng, 10^4)
1818
# we loop over the stream and fit the data in the reservoir
1919
for (i, e) in enumerate(stream)
2020
fit!(rs, e)

0 commit comments

Comments
 (0)