From 0ea6743c17f1e6d0f1cbb1c62753262ba64a3217 Mon Sep 17 00:00:00 2001 From: "LamTrinh.Dev" Date: Mon, 11 Aug 2025 00:56:26 +0700 Subject: [PATCH] Fix spelling errors in some comments. --- Sources/System/IORing/IORequest.swift | 2 +- Sources/System/UtilConsumers.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/System/IORing/IORequest.swift b/Sources/System/IORing/IORequest.swift index 7e433f9..17be792 100644 --- a/Sources/System/IORing/IORequest.swift +++ b/Sources/System/IORing/IORequest.swift @@ -320,7 +320,7 @@ extension IORing.Request { * ASYNC_CANCEL flags. * * IORING_ASYNC_CANCEL_ALL Cancel all requests that match the given key - * IORING_ASYNC_CANCEL_FD Key off 'fd' for cancelation rather than the + * IORING_ASYNC_CANCEL_FD Key off 'fd' for cancellation rather than the * request 'user_data' * IORING_ASYNC_CANCEL_ANY Match any request * IORING_ASYNC_CANCEL_FD_FIXED 'fd' passed in is a fixed descriptor diff --git a/Sources/System/UtilConsumers.swift b/Sources/System/UtilConsumers.swift index 183f5f7..6977543 100644 --- a/Sources/System/UtilConsumers.swift +++ b/Sources/System/UtilConsumers.swift @@ -52,13 +52,13 @@ extension Slice where Element: Equatable { return self[...idx] } - // If `e` is present, eat up to first occurence of `e` + // If `e` is present, eat up to first occurrence of `e` internal mutating func _eatUntil(_ e: Element) -> Slice? { guard let idx = self.firstIndex(of: e) else { return nil } return _eatUntil(idx) } - // If `e` is present, eat up to and through first occurence of `e` + // If `e` is present, eat up to and through first occurrence of `e` internal mutating func _eatThrough(_ e: Element) -> Slice? { guard let idx = self.firstIndex(of: e) else { return nil } return _eatThrough(idx)