GeezerVison is showing github.com — doc: improve docs to give descriptive info for the platform property · nodejs/node@9616fd5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/os.md +4-3Lines changed: 4 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -299,9 +299,10 @@ added: v0.5.0 |
299 | 299 |
|
300 | 300 | * Returns: {string} |
301 | 301 |
|
302 | | -Returns a string identifying the operating system platform. The value is set |
303 | | -at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`, |
304 | | -`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. |
| 302 | +Returns a string identifying the operating system platform for which |
| 303 | +the Node.js binary was compiled. The value is set at compile time. |
| 304 | +Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, |
| 305 | +`'openbsd'`, `'sunos'`, and `'win32'`. |
305 | 306 |
|
306 | 307 | The return value is equivalent to [`process.platform`][]. |
307 | 308 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: doc/api/process.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2609,7 +2609,7 @@ added: v0.1.16 |
2609 | 2609 | * {string} |
2610 | 2610 |
|
2611 | 2611 | The `process.platform` property returns a string identifying the operating |
2612 | | -system platform on which the Node.js process is running. |
| 2612 | +system platform for which the Node.js binary was compiled. |
2613 | 2613 |
|
2614 | 2614 | Currently possible values are: |
2615 | 2615 |
|
|