Skip to content

Commit f71f3f9

Browse files
authored
Merge pull request #1310 from tanvikini/typos
2 parents d9a5cff + 8a9b6d8 commit f71f3f9

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Foundation/URLSession/Configuration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ internal extension URLSession {
2929
/// default timeout for requests. This will cause a timeout if no data is transmitted for the given timeout value, and is reset whenever data is transmitted.
3030
let timeoutIntervalForRequest: TimeInterval
3131

32-
/// default timeout for requests. This will cause a timeout if a resource is not able to be retrieved within a given timeout.
32+
/// default timeout for requests. This will cause a timeout if a resource is not retrievable within a given timeout.
3333
let timeoutIntervalForResource: TimeInterval
3434

3535
/// type of service for requests.
@@ -57,7 +57,7 @@ internal extension URLSession {
5757
/// Note that these headers are added to the request only if not already present.
5858

5959
let httpAdditionalHeaders: [String : String]?
60-
/// The maximum number of simultanous persistent connections per host
60+
/// The maximum number of simultaneous persistent connections per host
6161
let httpMaximumConnectionsPerHost: Int
6262

6363
/// The cookie storage object to use, or nil to indicate that no cookies should be handled

Foundation/URLSession/URLSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ fileprivate extension URLSession {
454454
* as background sessions.
455455
*
456456
* Task objects are always created in a suspended state and
457-
* must be sent the -resume message before they will execute.
457+
* must be sent the -resume message before they execute.
458458
*/
459459
extension URLSession {
460460
/*

Foundation/URLSession/URLSessionConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
181181
Note that these headers are added to the request only if not already present. */
182182
open var httpAdditionalHeaders: [AnyHashable : Any]? = nil
183183

184-
/* The maximum number of simultanous persistent connections per host */
184+
/* The maximum number of simultaneous persistent connections per host */
185185
open var httpMaximumConnectionsPerHost: Int
186186

187187
/* The cookie storage object to use, or nil to indicate that no cookies should be handled */

Foundation/URLSession/URLSessionTask.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ open class URLSessionTask : NSObject, NSCopying {
158158
/// Number of body bytes we expect to send, derived from the Content-Length of the HTTP request */
159159
open internal(set) var countOfBytesExpectedToSend: Int64 = 0
160160

161-
/// Number of byte bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. */
161+
/// Number of bytes we expect to receive, usually derived from the Content-Length header of an HTTP response. */
162162
open internal(set) var countOfBytesExpectedToReceive: Int64 = 0
163163

164164
/// The taskDescription property is available for the developer to

Foundation/URLSession/http/EasyHandle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ import Dispatch
4343
/// needs to be configured for a specific transfer (e.g. the URL) will be
4444
/// configured on an easy handle.
4545
///
46-
/// A single `URLSessionTask` may do multiple, sonecutive transfers, and
47-
/// as a result it will have to reconfigure it's easy handle between
46+
/// A single `URLSessionTask` may do multiple, consecutive transfers, and
47+
/// as a result it will have to reconfigure its easy handle between
4848
/// transfers. An easy handle can be re-used once its transfer has
4949
/// completed.
5050
///

Foundation/URLSession/http/HTTPURLProtocol.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fileprivate extension _HTTPURLProtocol {
9393
fileprivate func configureEasyHandle(for request: URLRequest) {
9494
// At this point we will call the equivalent of curl_easy_setopt()
9595
// to configure everything on the handle. Since we might be re-using
96-
// a handle, we must be sure to set everything and not rely on defaul
96+
// a handle, we must be sure to set everything and not rely on default
9797
// values.
9898

9999
//TODO: We could add a strong reference from the easy handle back to
@@ -568,7 +568,7 @@ extension _HTTPURLProtocol: _EasyHandleDelegate {
568568
}
569569

570570
func seekInputStream(to position: UInt64) throws {
571-
// We will reset the body sourse and seek forward.
571+
// We will reset the body source and seek forward.
572572
NSUnimplemented()
573573
}
574574

0 commit comments

Comments
 (0)