From e52653abb0f25b2ad3118cba73f88e81f265a263 Mon Sep 17 00:00:00 2001 From: Roman Inflianskas Date: Thu, 11 Feb 2021 11:33:34 -0800 Subject: [PATCH] Update lib/pure/os.nim docs Co-authored-by: Timothee Cour --- lib/pure/os.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 440514c652ef2..60ade511afcbd 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -1649,8 +1649,8 @@ proc setFilePermissions*(filename: string, permissions: set[FilePermission], if res2 == - 1'i32: raiseOSError(osLastError(), $(filename, permissions)) proc isAdmin*: bool {.noWeirdTarget.} = - ## Tell whether the caller's process is a member of the Administrators local - ## group (on Windows) or a root (on POSIX). + ## Returns whether the caller's process is a member of the Administrators local + ## group (on Windows) or a root (on POSIX), via `geteuid() == 0`. when defined(windows): # Rewrite of the example from Microsoft Docs: # https://docs.microsoft.com/en-us/windows/win32/api/securitybaseapi/nf-securitybaseapi-checktokenmembership#examples