Skip to content

Commit 599d279

Browse files
Merge pull request #5514 from practicalswift/gardening-20161028
[gardening] Fix recently introduced typos.
2 parents 3616567 + 59a2b28 commit 599d279

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

docs/SIL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ load_borrow
21782178

21792179
Loads the value ``%1`` from the memory location ``%0``. The ``load_borrow``
21802180
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
21822182
by an ``end_borrow`` instruction. All ``load_borrow`` instructions must be
21832183
paired with exactly one ``end_borrow`` instruction along any path through the
21842184
program. Until ``end_borrow``, it is illegal to invalidate or store to ``%0``.

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5331,7 +5331,7 @@ bool FailureDiagnosis::visitApplyExpr(ApplyExpr *callExpr) {
53315331
return {CC_GeneralMismatch, {}};
53325332

53335333
// 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
53355335
// because there is no easy way to do that, and candidate set is going
53365336
// to be pruned by matching of the argument types later on anyway, so
53375337
// it's better to over report than to be too conservative.

test/Constraints/diagnostics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ let c_2505 = C_2505(arg: [C2_2505()]) // expected-error {{argument labels '(arg:
851851
// Diagnostic message for initialization with binary operations as right side
852852
let foo1255_3: String = 1 + 2 + 3 // expected-error {{cannot convert value of type 'Int' to specified type 'String'}}
853853
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'}}
855855
let foo1255_6: [String] = [1 + 2 + 3] // expected-error {{cannot convert value of type 'Int' to expected element type 'String'}}
856856

857857
// SR-2208

test/SILOptimizer/capture_promotion_generic_context.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Builtin
77
typealias Int = Builtin.Int32
88

99
// 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
1111
// apply the generic caller's substitutions to the nongeneric callee, violating
1212
// invariants.
1313

test/stdlib/TestFileManager.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ class TestFileManager : TestFileManagerSuper {
7575

7676
func testDirectoryEnumerator_error() {
7777
let fm = FileManager.default
78-
let nonexistantURL = URL(fileURLWithPath: "\(NSTemporaryDirectory())/nonexistant")
78+
let nonexistentURL = URL(fileURLWithPath: "\(NSTemporaryDirectory())/nonexistent")
7979

8080
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
8282
invoked = true
83-
expectEqual(nonexistantURL, url)
83+
expectEqual(nonexistentURL, url)
8484
expectEqual((err as NSError).code, NSFileReadNoSuchFileError)
8585
return true
8686
}
@@ -93,9 +93,9 @@ class TestFileManager : TestFileManagerSuper {
9393

9494
func testDirectoryEnumerator_error_noHandler() {
9595
let fm = FileManager.default
96-
let nonexistantURL = URL(fileURLWithPath: "\(NSTemporaryDirectory())/nonexistant")
96+
let nonexistentURL = URL(fileURLWithPath: "\(NSTemporaryDirectory())/nonexistent")
9797

98-
let e = fm.enumerator(at: nonexistantURL, includingPropertiesForKeys: [])
98+
let e = fm.enumerator(at: nonexistentURL, includingPropertiesForKeys: [])
9999
let url = e?.nextObject()
100100
expectTrue(url == nil)
101101

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,8 @@ NodeUniquePtr SDKNode::constructSDKNode(llvm::yaml::MappingNode *Node) {
816816
break;
817817
case KeyKind::KK_ownership:
818818
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.");
820821
break;
821822

822823
case KeyKind::KK_typeAttributes: {

0 commit comments

Comments
 (0)