Skip to content

network-typos: Fixed a few typos while reading through the Network SDK #17322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stdlib/public/SDK/Network/NWConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public final class NWConnection : CustomDebugStringConvertible {
/// in which case the send will be enqueued until the connection is ready to send.
/// This is an asynchronous send and the completion block can be used to
/// determine when the send is complete. There is nothing preventing a client
/// from issuing an excessive number of outstanding sends. To minmize memory
/// from issuing an excessive number of outstanding sends. To minimize memory
/// footprint and excessive latency as a consequence of buffer bloat, it is
/// advisable to keep a low number of outstanding sends. The completion block
/// can be used to pace subsequent sends.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SDK/Network/NWEndpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ public enum NWEndpoint: Hashable, CustomDebugStringConvertible {
/// A service endpoint represents a Bonjour service
case service(name: String, type: String, domain: String, interface: NWInterface?)

/// A unix endpoint represnts a path that supports connections using AF_UNIX domain sockets.
/// A unix endpoint represents a path that supports connections using AF_UNIX domain sockets.
case unix(path: String)

/// A Host is a name or address
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/SDK/Network/NWProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class NWProtocolDefinition : Equatable, CustomDebugStringConvertible {
}
}

/// NWProtocolOptions is an abtract superclass that represents a configuration options
/// NWProtocolOptions is an abstract superclass that represents a configuration options
/// that can be used to add a protocol into an NWParameters.ProtocolStack. These options
/// configure the behavior of a protocol and cannot be changed after starting a connection.
@available(macOS 10.14, iOS 12.0, watchOS 5.0, tvOS 12.0, *)
Expand All @@ -45,7 +45,7 @@ public class NWProtocolOptions {
}
}

/// NWProtocolMetadata is an abtract superclass. An instance of metadata holds a set of
/// NWProtocolMetadata is an abstract superclass. An instance of metadata holds a set of
/// protocol-specific metadata. This metadata allows clients to pass down protocol requirements
/// specific to some content being sent; as well as to retrieve metadata specific to some
/// content that was received. Each protocol is responsible for defining its own accessor
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SDK/Network/NWProtocolIP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class NWProtocolIP : NWProtocol {

/// Specify a single version of the Internet NWProtocol to allow.
/// Setting this value will constrain which address endpoints can
/// be used, and will filter DNS results during connection establishement.
/// be used, and will filter DNS results during connection establishment.
public var version: Version {
set {
self._version = newValue
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/SDK/Network/NWProtocolTLS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class NWProtocolTLS : NWProtocol {
public class Options : NWProtocolOptions {
/// Access the sec_protocol_options_t for a given network protocol
/// options instance. See <Security/SecProtocolOptions.h> for functions
/// to futher configure security options.
/// to further configure security options.
public var securityProtocolOptions: sec_protocol_options_t {
return nw_tls_copy_sec_protocol_options(self.nw)
}
Expand All @@ -39,7 +39,7 @@ public class NWProtocolTLS : NWProtocol {
public class Metadata: NWProtocolMetadata {
/// Access the sec_protocol_metadata_t for a given network protocol
/// metadata instance. See <Security/SecProtocolMetadata.h> for functions
/// to futher access security metadata.
/// to further access security metadata.
public var securityProtocolMetadata: sec_protocol_metadata_t {
return nw_tls_copy_sec_protocol_metadata(self.nw)
}
Expand Down