Skip to content

Commit 6b39445

Browse files
committed
fixed comment spelling NSNetservice->NSNetService
1 parent 0320144 commit 6b39445

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

GCD/GCDAsyncSocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ typedef enum GCDAsyncSocketError GCDAsyncSocketError;
271271

272272
/**
273273
* Connects to the given address, specified as a sockaddr structure wrapped in a NSData object.
274-
* For example, a NSData object returned from NSNetservice's addresses method.
274+
* For example, a NSData object returned from NSNetService's addresses method.
275275
*
276276
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
277277
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
@@ -291,7 +291,7 @@ typedef enum GCDAsyncSocketError GCDAsyncSocketError;
291291
* Connects to the given address, using the specified interface and timeout.
292292
*
293293
* The address is specified as a sockaddr structure wrapped in a NSData object.
294-
* For example, a NSData object returned from NSNetservice's addresses method.
294+
* For example, a NSData object returned from NSNetService's addresses method.
295295
*
296296
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
297297
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];

RunLoop/AsyncSocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ typedef enum AsyncSocketError AsyncSocketError;
267267

268268
/**
269269
* Connects to the given address, specified as a sockaddr structure wrapped in a NSData object.
270-
* For example, a NSData object returned from NSNetservice's addresses method.
270+
* For example, a NSData object returned from NSNetService's addresses method.
271271
*
272272
* If you have an existing struct sockaddr you can convert it to a NSData object like so:
273273
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];

RunLoop/AsyncSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ - (BOOL)connectToAddress:(NSData *)remoteAddr error:(NSError **)errPtr
15191519
* specifically in the onSocketWillConnect: method.
15201520
*
15211521
* Note: The NSData parameter is expected to be a sockaddr structure. For example, an NSData object returned from
1522-
* NSNetservice addresses method.
1522+
* NSNetService addresses method.
15231523
* If you have an existing struct sockaddr you can convert it to an NSData object like so:
15241524
* struct sockaddr sa -> NSData *dsa = [NSData dataWithBytes:&remoteAddr length:remoteAddr.sa_len];
15251525
* struct sockaddr *sa -> NSData *dsa = [NSData dataWithBytes:remoteAddr length:remoteAddr->sa_len];

0 commit comments

Comments
 (0)