Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Feb 1, 2022
1 parent 678c06b commit 2786ed7
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion docs/src/tutorials/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,17 @@ julia> @floop begin
@combine hist .+= _ # combine two histograms
end
hist
10-element Vector{Int64}:
31559
31597
31392
31712
31407
31835
31530
31807
31469
31345
```

!!! note
Expand Down Expand Up @@ -236,7 +247,7 @@ basecase-local buffers are required (for avoiding data races):
```jldoctest
julia> using FLoops
julia> ys = zeros(5)
julia> ys = zeros(5);
julia> @floop begin
@init buffer = zeros(100)
Expand Down Expand Up @@ -289,6 +300,17 @@ julia> @floop begin
@combine hist .+= _
end
hist
10-element SVector{10, Int32} with indices SOneTo(10):
31559
31597
31392
31712
31407
31835
31530
31807
31469
31345
```

!!! note
Expand Down

0 comments on commit 2786ed7

Please sign in to comment.