Skip to content

Commit

Permalink
Merge pull request #246 from koogawa/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
ishkawa authored Aug 6, 2017
2 parents 36856b0 + f45cd20 commit 512abb2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Sources/APIKit/DataParser/DataParser.swift
Original file line number Diff line number Diff line change
@@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion Sources/APIKit/Error/SessionTaskError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)`.
Expand Down
2 changes: 1 addition & 1 deletion Sources/APIKit/SessionAdapter/URLSessionAdapter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 512abb2

Please sign in to comment.