Skip to content

Commit 7fae76b

Browse files
authored
Merge pull request #310 from pitmonticone/master
Fix a few typos
2 parents c73ea26 + 8cc35f6 commit 7fae76b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ BenchmarkTools.Trial: 10000 samples with 972 evaluations.
6666
For quick sanity checks, one can use the [`@btime` macro](https://juliaci.github.io/BenchmarkTools.jl/stable/manual/#Benchmarking-basics), which is a convenience wrapper around `@benchmark` whose output is analogous to Julia's built-in [`@time` macro](https://docs.julialang.org/en/v1/base/base/#Base.@time):
6767

6868
```julia
69-
# The `seconds` expression helps set a rough time budget, see Manual for more explaination
69+
# The `seconds` expression helps set a rough time budget, see Manual for more explanation
7070
julia> @btime sin(x) setup=(x=rand()) seconds=3
7171
4.361 ns (0 allocations: 0 bytes)
7272
0.49587200950472454
@@ -98,7 +98,7 @@ julia> @btime $a + $b
9898
0.024 ns (0 allocations: 0 bytes)
9999
3
100100
```
101-
As a rule of thumb, if a benchmark reports that it took less than a nanosecond to perform, this hoisting probably occured. You can avoid this by referencing and dereferencing the interpolated variables
101+
As a rule of thumb, if a benchmark reports that it took less than a nanosecond to perform, this hoisting probably occurred. You can avoid this by referencing and dereferencing the interpolated variables
102102
```julia
103103
julia> @btime $(Ref(a))[] + $(Ref(b))[]
104104
1.277 ns (0 allocations: 0 bytes)

docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ julia> @btime $a + $b
6666
0.024 ns (0 allocations: 0 bytes)
6767
3
6868
```
69-
As a rule of thumb, if a benchmark reports that it took less than a nanosecond to perform, this hoisting probably occured. You can avoid this by referencing and dereferencing the interpolated variables
69+
As a rule of thumb, if a benchmark reports that it took less than a nanosecond to perform, this hoisting probably occurred. You can avoid this by referencing and dereferencing the interpolated variables
7070
```julia
7171
julia> @btime $(Ref(a))[] + $(Ref(b))[]
7272
1.277 ns (0 allocations: 0 bytes)

0 commit comments

Comments
 (0)