Skip to content

Commit e943865

Browse files
committed
network-comments: Updated PR based upon feedback received.
1 parent a76fb58 commit e943865

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

stdlib/public/SDK/Network/NWConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public final class NWConnection : CustomDebugStringConvertible {
478478
}
479479
}
480480

481-
/// Callbacks used when sending data to the protocol stack.
481+
/// A type representing a wrapped completion handler invoked when send content has been consumed by the protocol stack, or the lack of a completion handler because the content is idempotent.
482482
public enum SendCompletion {
483483
/// Completion handler to be invoked when send content has been successfully processed, or failed to send due to an error.
484484
/// Note that this does not guarantee that the data was sent out over the network, or acknowledge, but only that

stdlib/public/SDK/Network/NWEndpoint.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,6 @@ public enum NWEndpoint: Hashable, CustomDebugStringConvertible {
631631
interface = NWInterface(nwinterface)
632632
}
633633
if nw_endpoint_get_type(nw) == Network.nw_endpoint_type_host {
634-
635634
let host = NWEndpoint.Host.name(String(cString: nw_endpoint_get_hostname(nw)), interface)
636635
self = .hostPort(host: host, port: NWEndpoint.Port(nw_endpoint_get_port(nw)))
637636
} else if nw_endpoint_get_type(nw) == Network.nw_endpoint_type_address {

stdlib/public/SDK/Network/NWPath.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public struct NWInterface : Hashable, CustomDebugStringConvertible {
7474
}
7575
}
7676
}
77-
78-
/// The interface types wifi, cellular, wiredEthernet, and loopback.
77+
78+
/// The interface type wifi, cellular, wiredEthernet, and loopback.
7979
public let type: InterfaceType
8080

8181
/// The name of the interface, such as "en0"

0 commit comments

Comments
 (0)