Skip to content

Commit a543a9b

Browse files
author
sabkrish
committed
Documentation changes
Changed NSData to Data Removed () from DispatchSourceTimer
1 parent 64a024f commit a543a9b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Foundation/URLSession/http/HTTPBodySource.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import CoreFoundation
2020
import Dispatch
2121

2222

23-
/// Turn `NSData` into `DispatchData`
23+
/// Turn `Data` into `DispatchData`
2424
internal func createDispatchData(_ data: Data) -> DispatchData {
2525
//TODO: Avoid copying data
2626
let buffer = UnsafeRawBufferPointer(start: data._backing.bytes,

Foundation/URLSession/http/MultiHandle.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ fileprivate extension URLSession._MultiHandle {
350350
timeoutTimerFired()
351351
case .milliseconds(let milliseconds):
352352
if (timeoutSource == nil) || timeoutSource!.milliseconds != milliseconds {
353-
//TODO: Could simply change the existing timer by calling
354-
// DispatchSourceTimer() again.
353+
//TODO: Could simply change the existing timer by using DispatchSourceTimer again.
355354
let block = DispatchWorkItem { [weak self] in
356355
self?.timeoutTimerFired()
357356
}

0 commit comments

Comments
 (0)