Added FileMode to comment on asyncfile openAsync (#8008)

This commit is contained in:
Jimmie Houchin
2018-06-10 23:53:42 -05:00
committed by Varriount
parent df1784dabf
commit 657062145b

View File

@@ -91,7 +91,7 @@ proc newAsyncFile*(fd: AsyncFd): AsyncFile =
proc openAsync*(filename: string, mode = fmRead): AsyncFile =
## Opens a file specified by the path in ``filename`` using
## the specified ``mode`` asynchronously.
## the specified FileMode ``mode`` asynchronously.
when defined(windows) or defined(nimdoc):
let flags = FILE_FLAG_OVERLAPPED or FILE_ATTRIBUTE_NORMAL
let desiredAccess = getDesiredAccess(mode)