From edb3ffb0034c3d5dbaf3eacc46171801ab630d7c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 9 Mar 2020 10:59:11 -0400 Subject: [PATCH] doc: fix os.version() Windows API pRtlGetVersion is not a thing. This text was likely a result of copying the variable name used in libuv. This commit updates the documentation to reference the correct Windows API call. PR-URL: https://github.com/nodejs/node/pull/32156 Refs: https://github.com/nodejs/node/pull/31732 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Gireesh Punathil Reviewed-By: Bartosz Sosnowski Reviewed-By: Richard Lau Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- doc/api/os.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/os.md b/doc/api/os.md index 0a1da4690cc756..27a7c3d549f78b 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -399,7 +399,7 @@ added: v13.11.0 Returns a string identifying the kernel version. On POSIX systems, the operating system release is determined by calling -[uname(3)][]. On Windows, `pRtlGetVersion` is used, and if it is not available, +[uname(3)][]. On Windows, `RtlGetVersion()` is used, and if it is not available, `GetVersionExW()` will be used. See https://en.wikipedia.org/wiki/Uname#Examples for more information.