From f7045366b871da3dadc7c27b200cd9a08ebbb00d Mon Sep 17 00:00:00 2001 From: Carsten Bauer Date: Tue, 26 Mar 2024 09:44:40 +0100 Subject: [PATCH] clarify local in trapezoidal example --- docs/src/literate/integration/integration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/literate/integration/integration.md b/docs/src/literate/integration/integration.md index 59bec287..5b9d7e15 100644 --- a/docs/src/literate/integration/integration.md +++ b/docs/src/literate/integration/integration.md @@ -80,7 +80,7 @@ function trapezoidal_parallel(a, b, N) n = N ÷ nthreads() h = (b - a) / N return tmapreduce(+, 1:nthreads()) do i - local α = a + (i - 1) * n * h + local α = a + (i - 1) * n * h # the local keywords aren't necessary but good practice local β = α + n * h trapezoidal(α, β, n; h) end