Skip to content

Commit e2327f6

Browse files
authored
Merge pull request #10619 from ianpartridge/patch-1
2 parents 59c5e56 + ad2311d commit e2327f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/SDK/Foundation/JSONEncoder.swift

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

stdlib/public/SDK/Foundation/PlistEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ open class PropertyListEncoder {
4747
///
4848
/// - parameter value: The value to encode.
4949
/// - returns: A new `Data` value containing the encoded property list data.
50-
/// - throws: `EncodingError.invalidValue` if a non-comforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
50+
/// - throws: `EncodingError.invalidValue` if a non-conforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
5151
/// - throws: An error if any value throws an error during encoding.
5252
open func encode<Value : Encodable>(_ value: Value) throws -> Data {
5353
let encoder = _PlistEncoder(options: self.options)

0 commit comments

Comments
 (0)