Skip to content

Commit e49dd53

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 <info@bnoordhuis.nl> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent b3ff0ed commit e49dd53

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/api/os.md

Lines changed: 2 additions & 3 deletions
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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,11 @@ added: v0.5.0
416416

417417
* {string}
418418

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

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

0 commit comments

Comments
 (0)