Fix typo in asyncfile.
This commit is contained in:
parent
325e4520ec
commit
a1e2ec8872
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ proc getFileSize*(f: AsyncFile): int64 =
|
|||
proc newAsyncFile*(fd: cint | AsyncFd): AsyncFile =
|
||||
## Creates `AsyncFile` with a previously opened file descriptor `fd`.
|
||||
new result
|
||||
result.fd = register(result.fd)
|
||||
result.fd = register(fd)
|
||||
|
||||
proc openAsync*(filename: string, mode = fmRead): AsyncFile =
|
||||
## Opens a file specified by the path in ``filename`` using
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue