Skip to content

Commit 1b68986

Browse files
gibfahnMylesBorins
authored andcommitted
doc: remove x86 from os.arch() options
It is not possible for `process.arch` (which comes from V8's `target_arch`) to be `x86`. Also updates `process.arch` to have the same information. PR-URL: #17899 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]>
1 parent 51bfd32 commit 1b68986

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/api/os.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,10 @@ added: v0.5.0
3131
* Returns: {string}
3232

3333
The `os.arch()` method returns a string identifying the operating system CPU
34-
architecture *for which the Node.js binary was compiled*.
34+
architecture for which the Node.js binary was compiled.
3535

3636
The current possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,
37-
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, `'x64'`, and
38-
`'x86'`.
37+
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
3938

4039
Equivalent to [`process.arch`][].
4140

doc/api/process.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,11 @@ added: v0.5.0
450450

451451
* {string}
452452

453-
The `process.arch` property returns a String identifying the processor
454-
architecture that the Node.js process is currently running on. For instance
455-
`'arm'`, `'ia32'`, or `'x64'`.
453+
The `process.arch` property returns a string identifying the operating system CPU
454+
architecture for which the Node.js binary was compiled.
455+
456+
The current possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,
457+
`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`.
456458

457459
```js
458460
console.log(`This processor architecture is ${process.arch}`);

0 commit comments

Comments
 (0)