Return if we handle any error messages to avoid unnecessarily calling recv/send
[folly.git] / folly / io / Cursor.h
index ba0dd36f64e14a192ed2405953a542f474aa683e..09f1712fd76e160a5442b74a806e1c5ae3ae36ba 100644 (file)
 #include <stdexcept>
 #include <type_traits>
 
-#include <folly/Bits.h>
 #include <folly/Likely.h>
 #include <folly/Memory.h>
 #include <folly/Portability.h>
 #include <folly/Range.h>
 #include <folly/io/IOBuf.h>
 #include <folly/io/IOBufQueue.h>
+#include <folly/lang/Bits.h>
 #include <folly/portability/BitsFunctexcept.h>
 
 /**
@@ -39,7 +39,7 @@
  *
  * RWPrivateCursor - Read-write access, assumes private access to IOBuf chain
  * RWUnshareCursor - Read-write access, calls unshare on write (COW)
- * Appender        - Write access, assumes private access to IOBuf chian
+ * Appender        - Write access, assumes private access to IOBuf chain
  *
  * Note that RW cursors write in the preallocated part of buffers (that is,
  * between the buffer's data() and tail()), while Appenders append to the end