Skip to content

Commit 5888053

Browse files
authored
Spelling concurrency (#42547)
* spelling: access is Signed-off-by: Josh Soref <[email protected]> * spelling: executor Signed-off-by: Josh Soref <[email protected]> * spelling: making Signed-off-by: Josh Soref <[email protected]> * spelling: reabstraction Signed-off-by: Josh Soref <[email protected]> * spelling: releasing Signed-off-by: Josh Soref <[email protected]> * spelling: successes Signed-off-by: Josh Soref <[email protected]> * spelling: whoopsie Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent e75e5b5 commit 5888053

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

test/Concurrency/LLDBDebuggerFunctionActorExtension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -disable-availability-checking -debugger-support
22
// REQUIRES: concurrency
33

4-
// This test simulates LLDB's expression evaluator makeing an otherwise illegal
4+
// This test simulates LLDB's expression evaluator making an otherwise illegal
55
// synchronous call into an extension of an actor, as it would to run `p n` in
66
// this example.
77

test/Concurrency/Runtime/async_let_throw_completion_order.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func zim(y: Bar, x: Foo, z: Baz) { print("hooray") }
2525

2626
return try await zim(y: y, x: x, z: z)
2727
} catch {
28-
// CHECK: oopsie woopsie
29-
print("oopsie woopsie")
28+
// CHECK: oopsie whoopsie
29+
print("oopsie whoopsie")
3030
}
3131
}
3232
}

test/Concurrency/Runtime/exclusivity.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct Runner {
104104
}
105105

106106
// Then do a simple test with a single access to make sure that we do
107-
// not hit any sccesses b/c we introduced the Task.
107+
// not hit any successes b/c we introduced the Task.
108108
exclusivityTests.test("testDifferentTasksHaveDifferentExclusivityAccessSets") { @MainActor in
109109
let callee2 = { @MainActor (_ x: inout Int) -> Void in
110110
debugLog("==> Enter callee2")
@@ -415,7 +415,7 @@ struct Runner {
415415
await innerTaskHandle.value
416416
debugLog("==> After")
417417
}
418-
// Accessis over. We shouldn't crash here.
418+
// Access is over. We shouldn't crash here.
419419
withExclusiveAccess(to: &global1) { _ in
420420
debugLog("==> No crash!")
421421
}

test/Concurrency/Runtime/exclusivity_custom_executors.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ public final class MySerialExecutor : SerialExecutor {
9797

9898
@inlinable
9999
public nonisolated var unownedExecutor: UnownedSerialExecutor {
100-
debugLog("==> MyMainActor: Getting unowned exector!")
100+
debugLog("==> MyMainActor: Getting unowned executor!")
101101
return executor.asUnownedSerialExecutor()
102102
}
103103

104104
@inlinable
105105
public static var sharedUnownedExecutor: UnownedSerialExecutor {
106-
debugLog("==> MyMainActor: Getting shared unowned exector!")
106+
debugLog("==> MyMainActor: Getting shared unowned executor!")
107107
return MySerialExecutor.sharedUnownedExecutor
108108
}
109109

@@ -124,14 +124,14 @@ public final class MySerialExecutor : SerialExecutor {
124124

125125
@inlinable
126126
public nonisolated var unownedExecutor: UnownedSerialExecutor {
127-
debugLog("==> MyMainActorWithAccessInUnownedExecAccessor: Getting unowned exector!")
127+
debugLog("==> MyMainActorWithAccessInUnownedExecAccessor: Getting unowned executor!")
128128
withExclusiveAccess(to: &global) { _ in debugLog("Crash!") }
129129
return executor.asUnownedSerialExecutor()
130130
}
131131

132132
@inlinable
133133
public static var sharedUnownedExecutor: UnownedSerialExecutor {
134-
debugLog("==> MyMainActorWithAccessInUnownedExecAccessor: Getting shared unowned exector!")
134+
debugLog("==> MyMainActorWithAccessInUnownedExecAccessor: Getting shared unowned executor!")
135135
return MySerialExecutor.sharedUnownedExecutor
136136
}
137137

test/Concurrency/builtin_silgen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import _Concurrency
88
func suspend() async {}
99

1010
// Builtin.hopToActor should generate a mandatory hop_to_executor
11-
// before releaseing the actor and reaching a suspend.
11+
// before releasing the actor and reaching a suspend.
1212
//
1313
// CHECK-LABEL: sil private @$s14builtin_silgen11runDetachedyyFyyYaYbcfU_ : $@convention(thin) @Sendable @async @substituted <τ_0_0> () -> @out τ_0_0 for <()>
1414
// CHECK: [[ACTOR:%.*]] = apply {{%.*}}({{%.*}}) : $@convention(method) (@thick MainActor.Type) -> @owned MainActor

test/Concurrency/throwing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension MP {
4646
var tests = TestSuite("Async Throw")
4747

4848
if #available(SwiftStdlib 5.1, *) {
49-
tests.test("throwing of naturally direct but indirect reabstration") {
49+
tests.test("throwing of naturally direct but indirect reabstraction") {
5050
let task2 = detach {
5151
let m = M()
5252
await verifyCancelled {

0 commit comments

Comments
 (0)