Skip to content

Commit f3645a0

Browse files
authored
a couple grammar fixes (#3259)
1 parent e3e1cb5 commit f3645a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Sources/NIOCore/EventLoopFuture.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ extension EventLoopFuture {
899899

900900
/// Internal: Set the value and return a list of callbacks that should be invoked as a result.
901901
///
902-
/// We need a seperate method for setting the error to avoid Sendable checking of `Value`
902+
/// We need a separate method for setting the error to avoid Sendable checking of `Value`
903903
@inlinable
904904
internal func _setError(_ error: Error) -> CallbackList {
905905
self.eventLoop.assertInEventLoop()

Sources/NIOPerformanceTester/UDPBenchmark.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extension UDPBenchmark {
127127
/// Number of requests still to send.
128128
var requestsToSend: Int
129129
/// Number of responses still being waited for.
130-
var responsesToRecieve: Int
130+
var responsesToReceive: Int
131131
/// Number of writes before the next flush, i.e. flush on zero.
132132
var writesBeforeNextFlush: Int
133133
/// Number of writes before each flush.
@@ -137,7 +137,7 @@ extension UDPBenchmark {
137137

138138
init(requests: Int, writesPerFlush: Int, promise: EventLoopPromise<Void>) {
139139
self.requestsToSend = requests
140-
self.responsesToRecieve = requests
140+
self.responsesToReceive = requests
141141
self.writesBeforeNextFlush = writesPerFlush
142142
self.writesPerFlush = writesPerFlush
143143
self.promise = promise
@@ -169,8 +169,8 @@ extension UDPBenchmark {
169169
mutating func receive() -> Receive {
170170
switch self.state {
171171
case .running(var running):
172-
running.responsesToRecieve &-= 1
173-
if running.responsesToRecieve == 0, running.requestsToSend == 0 {
172+
running.responsesToReceive &-= 1
173+
if running.responsesToReceive == 0, running.requestsToSend == 0 {
174174
self.state = .stopped
175175
return .finished(running.promise)
176176
} else {

Tests/NIOPosixTests/ChannelTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1660,7 +1660,7 @@ final class ChannelTests: XCTestCase {
16601660
// this should escalate to a full closure of the clientChannel.
16611661
XCTAssertNoThrow(try clientChannel.close(mode: .output).wait())
16621662

1663-
// Assert that full closure of client channel occured by verifying
1663+
// Assert that full closure of client channel occurred by verifying
16641664
// that channelInactive was invoked on the channel.
16651665
XCTAssertNoThrow(try clientChannelInactivePromise.futureResult.wait())
16661666

0 commit comments

Comments
 (0)