From f45cd20167a0cd6eddddf7a1fc55df0509d0b921 Mon Sep 17 00:00:00 2001 From: Kosuke Ogawa Date: Mon, 31 Jul 2017 16:27:16 +0900 Subject: [PATCH] Fix typos --- .../APIKit/BodyParameters/MultipartFormDataBodyParameters.swift | 2 +- Sources/APIKit/DataParser/DataParser.swift | 2 +- Sources/APIKit/Error/SessionTaskError.swift | 2 +- Sources/APIKit/SessionAdapter/URLSessionAdapter.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift index 3253c6d8..5282df3e 100644 --- a/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift +++ b/Sources/APIKit/BodyParameters/MultipartFormDataBodyParameters.swift @@ -16,7 +16,7 @@ import Foundation /// `FormURLEncodedBodyParameters` serializes array of `Part` for HTTP body and states its content type is multipart/form-data. public struct MultipartFormDataBodyParameters: BodyParameters { - /// `EntityType` represents wheather the entity is expressed as `Data` or `InputStream`. + /// `EntityType` represents whether the entity is expressed as `Data` or `InputStream`. public enum EntityType { /// Expresses the entity as `Data`, which has faster upload speed and larger memory usage. case data diff --git a/Sources/APIKit/DataParser/DataParser.swift b/Sources/APIKit/DataParser/DataParser.swift index 671f465f..304db092 100644 --- a/Sources/APIKit/DataParser/DataParser.swift +++ b/Sources/APIKit/DataParser/DataParser.swift @@ -1,6 +1,6 @@ import Foundation -/// `DataParser` protocol provides inteface to parse HTTP response body and to state Content-Type to accept. +/// `DataParser` protocol provides interface to parse HTTP response body and to state Content-Type to accept. public protocol DataParser { /// Value for `Accept` header field of HTTP request. var contentType: String? { get } diff --git a/Sources/APIKit/Error/SessionTaskError.swift b/Sources/APIKit/Error/SessionTaskError.swift index cb9eb929..864d9287 100644 --- a/Sources/APIKit/Error/SessionTaskError.swift +++ b/Sources/APIKit/Error/SessionTaskError.swift @@ -5,7 +5,7 @@ public enum SessionTaskError: Error { /// Error of `URLSession`. case connectionError(Error) - /// Error while creating `URLReqeust` from `Request`. + /// Error while creating `URLRequest` from `Request`. case requestError(Error) /// Error while creating `Request.Response` from `(Data, URLResponse)`. diff --git a/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift b/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift index cc96ab6b..6caad171 100644 --- a/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift +++ b/Sources/APIKit/SessionAdapter/URLSessionAdapter.swift @@ -10,7 +10,7 @@ private var taskAssociatedObjectCompletionHandlerKey = 0 /// `URLSessionAdapter` connects `URLSession` with `Session`. /// /// If you want to add custom behavior of `URLSession` by implementing delegate methods defined in -/// `URLSessionDelegate` and related protocols, define a subclass of `URLSessionAdapter` and implment +/// `URLSessionDelegate` and related protocols, define a subclass of `URLSessionAdapter` and implement /// delegate methods that you want to implement. Since `URLSessionAdapter` also implements delegate methods /// `URLSession(_:task: didCompleteWithError:)` and `URLSession(_:dataTask:didReceiveData:)`, you have to call /// `super` in these methods if you implement them.