Skip to content

Commit

Permalink
Random docs: fix a couple of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed Apr 19, 2020
1 parent 48cd02a commit c2f0953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/Random/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,11 @@ struct DiscreteDistribution{V <: AbstractVector}
probabilities::V
end
```
and that we *always* want to build an a alias table, regardless of the number of values needed (we learn how to customize this below). The methods
and that we *always* want to build an alias table, regardless of the number of values needed (we learn how to customize this below). The methods
```julia
Random.eltype(::Type{<:DiscreteDistribution}) = Int

function Random.Sampler(::AbstractRng, distribution::DiscreteDistribution, ::Repetition)
function Random.Sampler(::Type{<:AbstractRNG}, distribution::DiscreteDistribution, ::Repetition)
SamplerSimple(disribution, make_alias_table(distribution.probabilities))
end
```
Expand Down

0 comments on commit c2f0953

Please sign in to comment.