File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public extension Decoding {
2929 }
3030}
3131
32- // MARK: - Encoder API
32+ // MARK: - Decoder API
3333
3434fileprivate struct DecodingProxy : Decodable {
3535 let decoder : Decoder
@@ -44,11 +44,11 @@ fileprivate struct DecodingProxy: Decodable {
4444}
4545
4646public 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)
You can’t perform that action at this time.
0 commit comments