Skip to content

Commit c488b4b

Browse files
committed
Add a link to juliadocs for do syntax
1 parent 5192b6d commit c488b4b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/src/tutorial.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ accuracy.
9797
integral(f, curve, GaussKronrod(atol = 1e-4u"Ω")) # -> Approximately (2π ± 1e-4) Ω
9898
```
9999

100-
The `integral` function and its aliases also support Julia's do-syntax, which
101-
provides a code block to define a single-use anonymous function and then injects
102-
it as a first argument to the preceding call. This can be useful if the integrand
100+
The `integral` function and its aliases also support Julia's
101+
[do-syntax](https://docs.julialang.org/en/v1/base/base/#do), which provides a
102+
code block to define a single-use anonymous function and then injects it as a
103+
first argument to the preceding call. This can be useful if the integrand
103104
function will not be used outside this integration call.
104105
```julia
105106
integral(curve) do p

0 commit comments

Comments
 (0)