Skip to content

Commit

Permalink
doctest fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Feb 1, 2024
1 parent 50bcc4d commit a3c48d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ OnlineStats = "a15396b6-48d5-5d58-9928-6d29437db91e"
SplittablesBase = "171d559e-b47b-412a-8079-5efa626c420e"
ThreadsX = "ac1d9e8a-700a-412c-b207-f0111f4b6c0d"
Transducers = "28d57a85-8fef-5791-bfe6-a80928e7c999"
Referenceables = "42d2dcc6-99eb-4e98-b66c-637b7d73030e"
1 change: 1 addition & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ makedocs(;
pages=[
"Home" => "index.md",
],
warnonly = true,
# repo="https://github.com/tkf/ThreadsX.jl/blob/{commit}{path}#L{line}",
sitename="ThreadsX.jl",
authors="Takafumi Arakaki <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions src/docs/sort!.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ Sort a vector `xs` in parallel.
julia> using ThreadsX

julia> ThreadsX.sort!([9, 5, 2, 0, 1])
5-element Array{Int64,1}:
5-element Vector{Int64}:
0
1
2
5
9

julia> ThreadsX.sort!([0:5;]; alg = ThreadsX.StableQuickSort, by = _ -> 1)
6-element Array{Int64,1}:
6-element Vector{Int64}:
0
1
2
Expand All @@ -30,7 +30,7 @@ to be one of the parallel sort algorithms provided by ThreadsX:

```julia
julia> sort!([9, 5, 2, 0, 1]; alg = ThreadsX.MergeSort)
5-element Array{Int64,1}:
5-element Vector{Int64}:
0
1
2
Expand Down

0 comments on commit a3c48d8

Please sign in to comment.