File tree Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Expand file tree Collapse file tree 6 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -2178,7 +2178,7 @@ load_borrow
2178
2178
2179
2179
Loads the value ``%1 `` from the memory location ``%0 ``. The ``load_borrow ``
2180
2180
instruction creates a borrowed scope in which a read-only borrow value ``%1 ``
2181
- can be used to read the value stored in ``%0 ``. The end of scope is deliminated
2181
+ can be used to read the value stored in ``%0 ``. The end of scope is delimited
2182
2182
by an ``end_borrow `` instruction. All ``load_borrow `` instructions must be
2183
2183
paired with exactly one ``end_borrow `` instruction along any path through the
2184
2184
program. Until ``end_borrow ``, it is illegal to invalidate or store to ``%0 ``.
Original file line number Diff line number Diff line change @@ -5331,7 +5331,7 @@ bool FailureDiagnosis::visitApplyExpr(ApplyExpr *callExpr) {
5331
5331
return {CC_GeneralMismatch, {}};
5332
5332
5333
5333
// FIXME: Handle matching of the generic types properly.
5334
- // Currently we don't filter result types containing generic parametes
5334
+ // Currently we don't filter result types containing generic parameters
5335
5335
// because there is no easy way to do that, and candidate set is going
5336
5336
// to be pruned by matching of the argument types later on anyway, so
5337
5337
// it's better to over report than to be too conservative.
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ let c_2505 = C_2505(arg: [C2_2505()]) // expected-error {{argument labels '(arg:
851
851
// Diagnostic message for initialization with binary operations as right side
852
852
let foo1255_3 : String = 1 + 2 + 3 // expected-error {{cannot convert value of type 'Int' to specified type 'String'}}
853
853
let foo1255_4 : Dictionary < String , String > = [ " hello " : 1 + 2 ] // expected-error {{cannot convert value of type 'Int' to expected dictionary value type 'String'}}
854
- let foo1255_5 : Dictionary < String , String > = [ ( 1 + 2 ) : " wolrd " ] // expected-error {{cannot convert value of type 'Int' to expected dictionary key type 'String'}}
854
+ let foo1255_5 : Dictionary < String , String > = [ ( 1 + 2 ) : " world " ] // expected-error {{cannot convert value of type 'Int' to expected dictionary key type 'String'}}
855
855
let foo1255_6 : [ String ] = [ 1 + 2 + 3 ] // expected-error {{cannot convert value of type 'Int' to expected element type 'String'}}
856
856
857
857
// SR-2208
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import Builtin
7
7
typealias Int = Builtin.Int32
8
8
9
9
// rdar://problem/28945854: When a nongeneric closure was formed inside a
10
- // generic function, the capture promotion pass would erronenously try to
10
+ // generic function, the capture promotion pass would erroneously try to
11
11
// apply the generic caller's substitutions to the nongeneric callee, violating
12
12
// invariants.
13
13
Original file line number Diff line number Diff line change @@ -75,12 +75,12 @@ class TestFileManager : TestFileManagerSuper {
75
75
76
76
func testDirectoryEnumerator_error( ) {
77
77
let fm = FileManager . default
78
- let nonexistantURL = URL ( fileURLWithPath: " \( NSTemporaryDirectory ( ) ) /nonexistant " )
78
+ let nonexistentURL = URL ( fileURLWithPath: " \( NSTemporaryDirectory ( ) ) /nonexistent " )
79
79
80
80
var invoked = false
81
- let e = fm. enumerator ( at: nonexistantURL , includingPropertiesForKeys: [ ] ) { ( url, err) in
81
+ let e = fm. enumerator ( at: nonexistentURL , includingPropertiesForKeys: [ ] ) { ( url, err) in
82
82
invoked = true
83
- expectEqual ( nonexistantURL , url)
83
+ expectEqual ( nonexistentURL , url)
84
84
expectEqual ( ( err as NSError ) . code, NSFileReadNoSuchFileError)
85
85
return true
86
86
}
@@ -93,9 +93,9 @@ class TestFileManager : TestFileManagerSuper {
93
93
94
94
func testDirectoryEnumerator_error_noHandler( ) {
95
95
let fm = FileManager . default
96
- let nonexistantURL = URL ( fileURLWithPath: " \( NSTemporaryDirectory ( ) ) /nonexistant " )
96
+ let nonexistentURL = URL ( fileURLWithPath: " \( NSTemporaryDirectory ( ) ) /nonexistent " )
97
97
98
- let e = fm. enumerator ( at: nonexistantURL , includingPropertiesForKeys: [ ] )
98
+ let e = fm. enumerator ( at: nonexistentURL , includingPropertiesForKeys: [ ] )
99
99
let url = e? . nextObject ( )
100
100
expectTrue ( url == nil )
101
101
Original file line number Diff line number Diff line change @@ -816,7 +816,8 @@ NodeUniquePtr SDKNode::constructSDKNode(llvm::yaml::MappingNode *Node) {
816
816
break ;
817
817
case KeyKind::KK_ownership:
818
818
Info.Ownership = swift::Ownership (getAsInt (Pair.getValue ()));
819
- assert (Info.Ownership != swift::Ownership::Strong && " Stong is implied." );
819
+ assert (Info.Ownership != swift::Ownership::Strong &&
820
+ " Strong is implied." );
820
821
break ;
821
822
822
823
case KeyKind::KK_typeAttributes: {
You can’t perform that action at this time.
0 commit comments