Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Mar 16, 2024
1 parent 0471146 commit 450996e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Sources/Hummingbird/Files/FileIO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<AS: AsyncSequence>(
Expand All @@ -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(
Expand Down

0 comments on commit 450996e

Please sign in to comment.