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)