Skip to content

Commit ea9159b

Browse files
authored
Semicolons instead of tuple (#317)
1 parent be72665 commit ea9159b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/manual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ In the above example, we wish to benchmark Julia's in-place sorting method. With
237237

238238
Note that the `setup` and `teardown` phases are **executed for each sample, not each evaluation**. Thus, the sorting example above wouldn't produce the intended results if `evals/sample > 1` (it'd suffer from the same problem of benchmarking against an already sorted vector).
239239

240-
If your setup involves several objects, you need to wrap them in a tuple as follows:
240+
If your setup involves several objects, you need to separate the assignments with semicolons, as follows:
241241

242242
```julia
243-
julia> @btime x + y setup = ((x, y) = (1, 2)) # works
243+
julia> @btime x + y setup = (x=1; y=2) # works
244244
1.238 ns (0 allocations: 0 bytes)
245245
3
246246

0 commit comments

Comments
 (0)