Skip to content

Commit b3a54d8

Browse files
committed
JSONEncoder: Typo in documentation of encode<T>(T)
1 parent 3c8d51e commit b3a54d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Foundation/JSONEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ open class JSONEncoder {
119119
///
120120
/// - parameter value: The value to encode.
121121
/// - returns: A new `Data` value containing the encoded JSON data.
122-
/// - throws: `EncodingError.invalidValue` if a non-comforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
122+
/// - throws: `EncodingError.invalidValue` if a non-conforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
123123
/// - throws: An error if any value throws an error during encoding.
124124
open func encode<T : Encodable>(_ value: T) throws -> Data {
125125
let encoder = _JSONEncoder(options: self.options)

0 commit comments

Comments
 (0)