Skip to content

Commit 3fd6581

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 14499f8 commit 3fd6581

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
@@ -432,9 +432,11 @@ added: v0.5.0
432432

433433
* {string}
434434

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

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

0 commit comments

Comments
 (0)