Skip to content

Commit b6a7776

Browse files
authored
Merge pull request #255 from lamtrinhdev/Fix_typo_issues
Fix spelling errors in some comments.
2 parents 086219b + 0ea6743 commit b6a7776

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/System/IORing/IORequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ extension IORing.Request {
320320
* ASYNC_CANCEL flags.
321321
*
322322
* IORING_ASYNC_CANCEL_ALL Cancel all requests that match the given key
323-
* IORING_ASYNC_CANCEL_FD Key off 'fd' for cancelation rather than the
323+
* IORING_ASYNC_CANCEL_FD Key off 'fd' for cancellation rather than the
324324
* request 'user_data'
325325
* IORING_ASYNC_CANCEL_ANY Match any request
326326
* IORING_ASYNC_CANCEL_FD_FIXED 'fd' passed in is a fixed descriptor

Sources/System/UtilConsumers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ extension Slice where Element: Equatable {
5252
return self[...idx]
5353
}
5454

55-
// If `e` is present, eat up to first occurence of `e`
55+
// If `e` is present, eat up to first occurrence of `e`
5656
internal mutating func _eatUntil(_ e: Element) -> Slice? {
5757
guard let idx = self.firstIndex(of: e) else { return nil }
5858
return _eatUntil(idx)
5959
}
6060

61-
// If `e` is present, eat up to and through first occurence of `e`
61+
// If `e` is present, eat up to and through first occurrence of `e`
6262
internal mutating func _eatThrough(_ e: Element) -> Slice? {
6363
guard let idx = self.firstIndex(of: e) else { return nil }
6464
return _eatThrough(idx)

0 commit comments

Comments
 (0)