From 4cf3007e4a897cec7db222b3a58e6a6f268dfc5f Mon Sep 17 00:00:00 2001 From: Kevin Song Date: Sat, 8 Jul 2023 14:54:20 -0500 Subject: [PATCH] docs: Fix a `!!! note` which was miscapitalized (#50474) (cherry picked from commit 236c23b7945a578dd630cdf6af81ecbf7aafacf6) --- doc/src/manual/multi-threading.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/manual/multi-threading.md b/doc/src/manual/multi-threading.md index 056ceb1363fd7..63902f1b7902b 100644 --- a/doc/src/manual/multi-threading.md +++ b/doc/src/manual/multi-threading.md @@ -292,7 +292,7 @@ sum_multi_good (generic function with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 ``` -!!! Note +!!! note Buffers should not be managed based on `threadid()` i.e. `buffers = zeros(Threads.nthreads())` because concurrent tasks can yield, meaning multiple concurrent tasks may use the same buffer on a given thread, introducing risk of data races. Further, when more than one thread is available tasks may change thread at yield points, which is known as