Skip to content

Commit f365934

Browse files
authored
Add WebAssembly to the list of architectures (#377)
Fixes: rdar://149423338
2 parents c7e0d95 + 697178d commit f365934

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TSPL.docc/ReferenceManual/Statements.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ conditions listed in the table below.
10051005
| Platform condition | Valid arguments |
10061006
| ------------------ | --------------- |
10071007
| `os()` | `macOS`, `iOS`, `watchOS`, `tvOS`, `visionOS`, `Linux`, `Windows` |
1008-
| `arch()` | `i386`, `x86_64`, `arm`, `arm64` |
1008+
| `arch()` | `arm`, `arm64`, `i386`, `wasm32`, `x86_64`, |
10091009
| `swift()` | `>=` or `<` followed by a version number |
10101010
| `compiler()` | `>=` or `<` followed by a version number |
10111011
| `canImport()` | A module name |
@@ -1255,7 +1255,7 @@ see <doc:Expressions#Explicit-Member-Expression>.
12551255
> *platform-condition* **`targetEnvironment`** **`(`** *environment* **`)`**
12561256
>
12571257
> *operating-system* **`macOS`** | **`iOS`** | **`watchOS`** | **`tvOS`** | **`visionOS`** | **`Linux`** | **`Windows`** \
1258-
> *architecture* **`i386`** | **`x86_64`** | **`arm`** | **`arm64`** \
1258+
> *architecture* **`arm`** | **`arm64`** | **`i386`** | **`wasm32`** | **`x86_64`** \
12591259
> *swift-version* *decimal-digits* *swift-version-continuation*_?_ \
12601260
> *swift-version-continuation* **`.`** *decimal-digits* *swift-version-continuation*_?_ \
12611261
> *environment* **`simulator`** | **`macCatalyst`**

0 commit comments

Comments
 (0)