diff --git a/Sources/NIOPosix/NonBlockingFileIO.swift b/Sources/NIOPosix/NonBlockingFileIO.swift index dacdc576be..2e07175bc3 100644 --- a/Sources/NIOPosix/NonBlockingFileIO.swift +++ b/Sources/NIOPosix/NonBlockingFileIO.swift @@ -376,12 +376,12 @@ public struct NonBlockingFileIO: Sendable { } } - /// Returns the length of the file associated with `fileHandle`. + /// Returns the length of the file in bytes associated with `fileHandle`. /// /// - parameters: /// - fileHandle: The `NIOFileHandle` to read from. /// - eventLoop: The `EventLoop` to create the returned `EventLoopFuture` from. - /// - returns: An `EventLoopFuture` which is fulfilled if the write was successful or fails on error. + /// - returns: An `EventLoopFuture` which is fulfilled with the length of the file in bytes if the write was successful or fails on error. public func readFileSize(fileHandle: NIOFileHandle, eventLoop: EventLoop) -> EventLoopFuture { return self.threadPool.runIfActive(eventLoop: eventLoop) {