Skip to content

Commit

Permalink
Add highliting to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar committed Apr 16, 2024
1 parent aba9e6c commit e892c6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ If the iterable is lazy, the memory required grows in relation to the size of th

The [`itsample`](@ref) instead allows to consume all the stream at once and return the sample collected:

```
```julia
julia> using StreamSampling

julia> st = 1:10;
Expand All @@ -25,7 +25,7 @@ julia> itsample(st, 5)
In some cases, one needs to control the updates the [`ReservoirSample`](@ref) will be subject to. In this case
you can simply use the [`update!`](@ref) function to fit new values in the reservoir:

```
```julia
julia> using StreamSampling

julia> rs = ReservoirSample(Int, 5);
Expand All @@ -43,4 +43,4 @@ julia> value(rs)
74
```

Consult the [API page](https://juliadynamics.github.io/StreamSampling.jl/stable/api/) for more information on the available functionalities.
Consult the [API page](https://juliadynamics.github.io/StreamSampling.jl/stable/api/) for more information on the available functionalities.

0 comments on commit e892c6c

Please sign in to comment.