Skip to content

Commit fe44c16

Browse files
committed
fix markdown syntax typo
1 parent 84a2be7 commit fe44c16

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

docs/src/literate/boxing/boxing.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All multithreading in julia is built around the idea of passing around
55
and executing functions, but often these functions "enclose" data from
66
an outer local scope, making them what's called a "closure".
77
8-
# ## Boxed variables causing race conditions
8+
## Boxed variables causing race conditions
99
1010
Julia allows functions which capture variables to re-bind those variables
1111
to different values, but doing so can cause subtle race conditions in

docs/src/literate/boxing/boxing.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ All multithreading in julia is built around the idea of passing around
88
and executing functions, but often these functions "enclose" data from
99
an outer local scope, making them what's called a "closure".
1010

11-
# ## Boxed variables causing race conditions
11+
## Boxed variables causing race conditions
1212

1313
Julia allows functions which capture variables to re-bind those variables
1414
to different values, but doing so can cause subtle race conditions in
@@ -30,16 +30,16 @@ end
3030

3131
````
3232
10-element Vector{Int64}:
33+
5
34+
4
3335
6
34-
6
35-
6
36-
6
37-
6
38-
6
39-
6
40-
6
41-
6
42-
6
36+
4
37+
5
38+
4
39+
5
40+
4
41+
5
42+
4
4343
````
4444

4545
You may have expected that to return `[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]`,
@@ -152,16 +152,16 @@ end
152152

153153
````
154154
10-element Vector{Int64}:
155-
10
156-
10
157-
10
158-
10
159-
10
160-
10
161-
10
162-
10
163-
10
164-
10
155+
3
156+
2
157+
3
158+
2
159+
3
160+
2
161+
3
162+
2
163+
3
164+
3
165165
````
166166

167167
## Non-race conditon boxed variables
@@ -225,8 +225,8 @@ end
225225
````
226226

227227
````
228-
A = 1
229-
A = 1
228+
A = 2
229+
A = 2
230230
231231
````
232232

0 commit comments

Comments
 (0)