Skip to content

Commit 31bf087

Browse files
twenty2811John
andauthored
fix typo (#1775)
Co-authored-by: John <liuyuqiang@pronetway.com>
1 parent 9bbf161 commit 31bf087

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/AsyncSocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct AsyncSocket {
141141
getLoopData()->corkedSocket = this;
142142
}
143143

144-
/* Returns wheter we are corked or not */
144+
/* Returns whether we are corked or not */
145145
bool isCorked() {
146146
return getLoopData()->corkedSocket == this;
147147
}
@@ -231,7 +231,7 @@ struct AsyncSocket {
231231
}
232232

233233
/* Write in three levels of prioritization: cork-buffer, syscall, socket-buffer. Always drain if possible.
234-
* Returns pair of bytes written (anywhere) and wheter or not this call resulted in the polling for
234+
* Returns pair of bytes written (anywhere) and whether or not this call resulted in the polling for
235235
* writable (or we are in a state that implies polling for writable). */
236236
std::pair<int, bool> write(const char *src, int length, bool optionally = false, int nextLength = 0) {
237237
/* Fake success if closed, simple fix to allow uncork of closed socket to succeed */

0 commit comments

Comments
 (0)