We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5195a70 commit 80e8a02Copy full SHA for 80e8a02
Sources/URLRouting/Body.swift
@@ -26,7 +26,7 @@ public struct Body<Bytes: Parser>: Parser where Bytes.Input == Data {
26
/// - Parameter bytesConversion: A conversion that transforms bytes into some other type.
27
@inlinable
28
public init<C>(_ bytesConversion: C)
29
- where Bytes == Parsers.MapConversion<Parsers.ReplaceError<Rest<Bytes.Input>>, C> {
+ where Bytes == Parsers.MapConversion<Parsers.ReplaceError<Rest<Data>>, C> {
30
self.bytesParser = Rest().replaceError(with: .init()).map(bytesConversion)
31
}
32
0 commit comments