From 69c0cd463b2eb3a6552229f89cdfb04904a9efe7 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 12 Dec 2017 11:37:07 +0000 Subject: [PATCH] fix random typos --- Sources/NIO/ChannelHandlers.swift | 10 +++++----- Tests/NIOPriorityQueueTests/PriorityQueueTests.swift | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/NIO/ChannelHandlers.swift b/Sources/NIO/ChannelHandlers.swift index a6315a1ac..1e2c5a4d8 100644 --- a/Sources/NIO/ChannelHandlers.swift +++ b/Sources/NIO/ChannelHandlers.swift @@ -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 } diff --git a/Tests/NIOPriorityQueueTests/PriorityQueueTests.swift b/Tests/NIOPriorityQueueTests/PriorityQueueTests.swift index e6106eb2c..0582f0b70 100644 --- a/Tests/NIOPriorityQueueTests/PriorityQueueTests.swift +++ b/Tests/NIOPriorityQueueTests/PriorityQueueTests.swift @@ -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 / | \