Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarshil jain <twitharshil@gmail.com>2022-01-28 03:12:01 +0300
committerGitHub <noreply@github.com>2022-01-28 03:12:01 +0300
commita4183b666e3a3f8eafaba5acd09e4d3dd39c5e1c (patch)
tree37eac794497b6cd66edf87f30bb06f8af50cf62a /doc/api/os.md
parent40ef144b6531e08a26f2690e1f3b6f429ba0cf08 (diff)
doc: improve docs to give descriptive info for the platform property
PR-URL: https://github.com/nodejs/node/pull/41650 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Tierney Cyren <hello@bnb.im>
Diffstat (limited to 'doc/api/os.md')
-rw-r--r--doc/api/os.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/api/os.md b/doc/api/os.md
index 19d0528b0ea..99c448a4b90 100644
--- a/doc/api/os.md
+++ b/doc/api/os.md
@@ -301,9 +301,10 @@ added: v0.5.0
* Returns: {string}
-Returns a string identifying the operating system platform. The value is set
-at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,
-`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
+Returns a string identifying the operating system platform for which
+the Node.js binary was compiled. The value is set at compile time.
+Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`,
+`'openbsd'`, `'sunos'`, and `'win32'`.
The return value is equivalent to [`process.platform`][].