fix random typos

This commit is contained in:
Johannes Weiss committed 2017-12-12 11:37:07 +00:00
1 parent 2373863f54
commit 69c0cd463b
2 files changed
+6 -6

No files matched your search

+5 -5
View File
@@ -16,8 +16,8 @@
//
/**
ChannelHandler implementation which enforces back-pressure by stop reading from the remote-peer when it can not write back fast-enough and start reading again
once pending data was written.
ChannelHandler implementation which enforces back-pressure by stopping to read from the remote peer when it cannot write back fast enough.
It will start reading again once pending data was written.
*/
public class BackPressureHandler: ChannelInboundHandler, _ChannelOutboundHandler {
public typealias InboundIn = ByteBuffer
@@ -113,11 +113,11 @@ public class IdleStateHandler : ChannelInboundHandler, ChannelOutboundHandler {
public typealias OutboundOut = NIOAny
enum IdleStateEvent {
/// Will be triggered when no write was performed for the specified period of time
/// Will be triggered when no write was performed for the specified amount of time
case write
/// Will be triggered when no read was performed for the specified period of time
/// Will be triggered when no read was performed for the specified amount of time
case read
/// Will be triggered when neither read nor write was performed for the specified period of time
/// Will be triggered when neither read nor write was performed for the specified amount of time
case all
}
@@ -115,7 +115,7 @@ class PriorityQueueTest: XCTestCase {
let inTheMiddles = zip(1...99, (1...99).reversed()).map { SomePartiallyOrderedDataType(width: $0, height: $1) }
/*
the four values are only partially orderd (from small (top) to large (bottom)):
the four values are only partially ordered (from small (top) to large (bottom)):
clearlyTheSmallest
/ | \