diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2024-06-02 11:28:04 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2024-06-02 11:28:04 -0700 |
| commit | d313e7e1836e3f92f42f6acdea449224288a1f23 (patch) | |
| tree | cd2be9794c0fe17d2e1a5e854d159971fd05b60d | |
| parent | 5ecb034cc307e40feda18f216f44564b13fa2a65 (diff) | |
| download | rust-d313e7e1836e3f92f42f6acdea449224288a1f23.tar.gz rust-d313e7e1836e3f92f42f6acdea449224288a1f23.zip | |
Fix testing examples in documentation
| -rw-r--r-- | src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md | 2 | ||||
| -rw-r--r-- | src/doc/rustc/src/platform-support/wasm32-wasip1.md | 2 | ||||
| -rw-r--r-- | src/doc/rustc/src/platform-support/wasm32-wasip2.md | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md b/src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md index 66cf964bd25..2b3d15e93c8 100644 --- a/src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md +++ b/src/doc/rustc/src/platform-support/wasm32-wasip1-threads.md @@ -155,7 +155,7 @@ or another engine that supports `wasi-threads` is installed and can be found in It's recommended to conditionally compile code for this target with: -``` +```text #[cfg(all(target_os = "wasi", target_env = "p1", target_feature = "atomics"))] ``` diff --git a/src/doc/rustc/src/platform-support/wasm32-wasip1.md b/src/doc/rustc/src/platform-support/wasm32-wasip1.md index 3f6ed130e12..fb70bbdc2b4 100644 --- a/src/doc/rustc/src/platform-support/wasm32-wasip1.md +++ b/src/doc/rustc/src/platform-support/wasm32-wasip1.md @@ -126,7 +126,7 @@ can be tested locally, for example, with: It's recommended to conditionally compile code for this target with: -``` +```text #[cfg(all(target_os = "wasi", target_env = "p1"))] ``` diff --git a/src/doc/rustc/src/platform-support/wasm32-wasip2.md b/src/doc/rustc/src/platform-support/wasm32-wasip2.md index 7b4eb31b214..1e53fbc178e 100644 --- a/src/doc/rustc/src/platform-support/wasm32-wasip2.md +++ b/src/doc/rustc/src/platform-support/wasm32-wasip2.md @@ -58,6 +58,6 @@ This target is not tested in CI at this time. Locally it can be tested with a It's recommended to conditionally compile code for this target with: -``` +```text #[cfg(all(target_os = "wasi", target_env = "p2"))] ``` |
