mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
some grammar fixes
This commit is contained in:
1 parent
4f2c5234df
commit
eaf658691c
6 files changed
+7
-7
No files matched your search
@@ -402,7 +402,7 @@ public class HTTPDecoder<HTTPMessageT>: ByteToMessageDecoder, AnyHTTPDecoder {
|
||||
|
||||
public func decode(ctx: ChannelHandlerContext, buffer: inout ByteBuffer) throws -> Bool {
|
||||
if let slice = state.slice {
|
||||
// If we stored a slice before we need to ensure we move the readerIndex so we not try to parse the data again and also
|
||||
// If we stored a slice before we need to ensure we move the readerIndex so we don't try to parse the data again and also
|
||||
// adjust the slice as it now starts from 0.
|
||||
state.slice = (readerIndex: 0 , length: slice.length)
|
||||
buffer.moveReaderIndex(forwardBy: state.readerIndexAdjustment)
|
||||
|
||||
Reference in new issue
Block a user