PropertyListEncoder: Typo in documentation of encode<Value>(Value)

This commit is contained in:
Ian Partridge
2017-06-27 10:24:25 +01:00
parent 399caebf11
commit ad2311d9e2

View File

@@ -47,7 +47,7 @@ open class PropertyListEncoder {
///
/// - parameter value: The value to encode.
/// - returns: A new `Data` value containing the encoded property list data.
/// - throws: `EncodingError.invalidValue` if a non-comforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
/// - throws: `EncodingError.invalidValue` if a non-conforming floating-point value is encountered during encoding, and the encoding strategy is `.throw`.
/// - throws: An error if any value throws an error during encoding.
open func encode<Value : Encodable>(_ value: Value) throws -> Data {
let encoder = _PlistEncoder(options: self.options)