diff --git a/Documentation/APIKit2MigrationGuide.md b/Documentation/APIKit2MigrationGuide.md index e67d78e4..05a32e5c 100644 --- a/Documentation/APIKit2MigrationGuide.md +++ b/Documentation/APIKit2MigrationGuide.md @@ -16,7 +16,7 @@ Errors cases of `Session.sendRequest(_:handler:)` is reduced to 3 cases listed b ```swift public enum SessionTaskError: ErrorType { /// Error of networking backend such as `NSURLSession`. - case ConnectionError(NSError) + case ConnectionError(ErrorType) /// Error while creating `NSURLRequest` from `Request`. case RequestError(ErrorType) diff --git a/Sources/DataParserType/StringDataParser.swift b/Sources/DataParserType/StringDataParser.swift index aa54a014..21d08d30 100644 --- a/Sources/DataParserType/StringDataParser.swift +++ b/Sources/DataParserType/StringDataParser.swift @@ -9,7 +9,7 @@ public class StringDataParser: DataParserType { /// The string encoding of the data. public let encoding: NSStringEncoding - /// Returns `FormURLEncodedDataParser` with the string encoding. + /// Returns `StringDataParser` with the string encoding. public init(encoding: NSStringEncoding = NSUTF8StringEncoding) { self.encoding = encoding }