Skip to content

Commit d313e7e

Browse files
committed
Fix testing examples in documentation
1 parent 5ecb034 commit d313e7e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ or another engine that supports `wasi-threads` is installed and can be found in
155155

156156
It's recommended to conditionally compile code for this target with:
157157

158-
```
158+
```text
159159
#[cfg(all(target_os = "wasi", target_env = "p1", target_feature = "atomics"))]
160160
```
161161

src/doc/rustc/src/platform-support/wasm32-wasip1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ can be tested locally, for example, with:
126126

127127
It's recommended to conditionally compile code for this target with:
128128

129-
```
129+
```text
130130
#[cfg(all(target_os = "wasi", target_env = "p1"))]
131131
```
132132

src/doc/rustc/src/platform-support/wasm32-wasip2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ This target is not tested in CI at this time. Locally it can be tested with a
5858

5959
It's recommended to conditionally compile code for this target with:
6060

61-
```
61+
```text
6262
#[cfg(all(target_os = "wasi", target_env = "p2"))]
6363
```

0 commit comments

Comments
 (0)