Skip to content

Commit

Permalink
Update lib/pure/os.nim docs
Browse files Browse the repository at this point in the history
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
  • Loading branch information
rominf and timotheecour authored Feb 11, 2021
1 parent abb5127 commit e52653a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pure/os.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e52653a

Please sign in to comment.