Skip to content

Commit 1d79f44

Browse files
committed
Fix documentation.
1 parent f0c5e99 commit 1d79f44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Coding/Decoding.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public extension Decoding {
2929
}
3030
}
3131

32-
// MARK: - Encoder API
32+
// MARK: - Decoder API
3333

3434
fileprivate struct DecodingProxy: Decodable {
3535
let decoder: Decoder
@@ -44,11 +44,11 @@ fileprivate struct DecodingProxy: Decodable {
4444
}
4545

4646
public extension TopLevelDecoder {
47-
/// Encodes a value `T` using the given encoding.
47+
/// Decodes the input into a value `T` using the given decoding.
4848
///
4949
/// - Parameters:
50-
/// - value: The value to be encoded.
51-
/// - encoding: The encoding used to encode the value.
50+
/// - input: The input to be decoded.
51+
/// - decoding: The decoding to use when decoding the input.
5252
///
5353
func decode<T>(_ input: Input, as decoding: Decoding<T>) throws -> T {
5454
try decode(DecodingProxy.self, from: input).decode(using: decoding)

0 commit comments

Comments
 (0)