Skip to content

Commit 7aefe01

Browse files
authored
Spelling test interpreter (#58566)
* spelling: bridgeable Signed-off-by: Josh Soref <[email protected]> * spelling: constrained Signed-off-by: Josh Soref <[email protected]> * spelling: exist Signed-off-by: Josh Soref <[email protected]> * spelling: overridden Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent b5b33d4 commit 7aefe01

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

test/Interpreter/availability_weak_linking.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ extension UnavailableSwiftClass : SomeSwiftProtocol {
164164

165165
func checkSwiftProtocolConformance() {
166166
// Make sure the runtime doesn't crash in the presence of a conformance
167-
// record for a class that doesn't exsit at runtime.
167+
// record for a class that doesn't exist at runtime.
168168
let x: Any = 42
169169
_blackHole(x as? SomeSwiftProtocol)
170170
}

test/Interpreter/dynamic_cast_optionals_to_nsobject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func AnyToNSObject(_ a: Any) {
1212
if a is NSObject {
1313
// ok
1414
} else {
15-
fatalError("argument is not bridgable to NSObject")
15+
fatalError("argument is not bridgeable to NSObject")
1616
}
1717
}
1818

test/Interpreter/keypath.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public class GenericController<U> {
3737
fileprivate let label = MyLabel()
3838
}
3939

40-
public func generic_class_constrainted_keypath<U, V>(_ c: V) where V : GenericController<U> {
40+
public func generic_class_constrained_keypath<U, V>(_ c: V) where V : GenericController<U> {
4141
let kp = \V.label
4242
print(kp)
4343
print(c[keyPath: kp].text)
4444
}
4545

4646
// CHECK: Swift.KeyPath<main.GenericController<Swift.Int>, main.MyLabel>
4747
// CHECK: label
48-
generic_class_constrainted_keypath(GenericController(5))
48+
generic_class_constrained_keypath(GenericController(5))

test/Interpreter/ptrauth-kvo.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import Foundation
66

77
class A : NSObject {
88
func a1() {} // never overridden
9-
func x() {} // overriden 1x
10-
func y() {} // overriden 2x
11-
func z() {} // overriden 3x
9+
func x() {} // overridden 1x
10+
func y() {} // overridden 2x
11+
func z() {} // overridden 3x
1212
}
1313

1414
class B : A {

0 commit comments

Comments
 (0)