From 450996e7bac09a035fd1b39d27befde2b14520c5 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Sat, 16 Mar 2024 09:03:57 +0000 Subject: [PATCH] Update comments --- Sources/Hummingbird/Files/FileIO.swift | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Sources/Hummingbird/Files/FileIO.swift b/Sources/Hummingbird/Files/FileIO.swift index 5997bb467..ad2f8ca7f 100644 --- a/Sources/Hummingbird/Files/FileIO.swift +++ b/Sources/Hummingbird/Files/FileIO.swift @@ -66,11 +66,10 @@ public struct FileIO: Sendable { } } - /// Write contents of request body to file + /// Write contents of AsyncSequence of buffers to file /// - /// This can be used to save arbitrary ByteBuffers by passing in `.byteBuffer(ByteBuffer)` as contents /// - Parameters: - /// - contents: Request body to write. + /// - contents: AsyncSequence of buffers to write. /// - path: Path to write to /// - logger: Logger public func writeFile( @@ -86,11 +85,10 @@ public struct FileIO: Sendable { } } - /// Write contents of request body to file + /// Write contents of buffer to file /// - /// This can be used to save arbitrary ByteBuffers by passing in `.byteBuffer(ByteBuffer)` as contents /// - Parameters: - /// - contents: Request body to write. + /// - contents: ByteBuffer to write. /// - path: Path to write to /// - logger: Logger public func writeFile(