Skip to content

Commit

Permalink
Fix quantile doctest (#188)
Browse files Browse the repository at this point in the history
We should have updated the doctests when improving behavior at #184. Also update Documenter, which by default now fails when doctests fail.
  • Loading branch information
nalimilan authored Feb 4, 2025
1 parent bfa5c6b commit 77bd570
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"

[compat]
Documenter = "0.24"
Documenter = "1.8"
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ end
makedocs(
modules = [Statistics],
sitename = "Statistics",
warnonly = [:missing_docs, :cross_references],
pages = Any[
"Statistics" => "index.md"
]
Expand Down
6 changes: 3 additions & 3 deletions src/Statistics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -962,9 +962,9 @@ true
julia> y
3-element Vector{Float64}:
1.2000000000000002
1.2
2.0
2.8000000000000003
2.8
```
"""
function quantile!(q::AbstractArray, v::AbstractVector, p::AbstractArray;
Expand Down Expand Up @@ -1106,7 +1106,7 @@ julia> quantile(0:20, [0.1, 0.5, 0.9])
3-element Vector{Float64}:
2.0
10.0
18.000000000000004
18.0
julia> quantile(skipmissing([1, 10, missing]), 0.5)
5.5
Expand Down

0 comments on commit 77bd570

Please sign in to comment.