Skip to content

Commit ef4f925

Browse files
[gardening] Fix recently introduced typos.
1 parent fca1834 commit ef4f925

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

include/swift/Basic/TopCollection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class TopCollection {
150150
// drop values with that score.
151151
//
152152
// Note that all of the values between EndOfAccepted and MaxSize
153-
// should have the same score, beause otherwise there's a tier we
153+
// should have the same score, because otherwise there's a tier we
154154
// shouldn't have marked dead.
155155

156156
// Just overwrite the next element instead of inserting if possible.

lib/Parse/ParseDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4468,7 +4468,7 @@ Parser::parseDeclFunc(SourceLoc StaticLoc, StaticSpellingKind StaticSpelling,
44684468

44694469
SourceRange DoubleIdentifierRange(NameLoc, Tok.getLoc());
44704470

4471-
// Provide two fix-its: a direct concatentation of the two identifiers
4471+
// Provide two fix-its: a direct concatenation of the two identifiers
44724472
// and a camel-cased version.
44734473

44744474
auto DirectConcatenation = NameTok.getText().str() + Tok.getText().str();

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ public protocol Collection : Indexable, Sequence {
632632
/// The indices that are valid for subscripting the collection, in ascending
633633
/// order.
634634
///
635-
/// A collections's `indices` property can hold a strong reference to the
635+
/// A collection's `indices` property can hold a strong reference to the
636636
/// collection itself, causing the collection to be non-uniquely referenced.
637637
/// If you mutate the collection while iterating over its indices, a strong
638638
/// reference can cause an unexpected copy of the collection. To avoid the

stdlib/public/core/Indices.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ extension ${collectionForTraversal(Traversal)} where Indices == ${Self}<Self> {
109109
/// The indices that are valid for subscripting the collection, in ascending
110110
/// order.
111111
///
112-
/// A collections's `indices` property can hold a strong reference to the
112+
/// A collection's `indices` property can hold a strong reference to the
113113
/// collection itself, causing the collection to be non-uniquely referenced.
114114
/// If you mutate the collection while iterating over its indices, a strong
115115
/// reference can cause an unexpected copy of the collection. To avoid the

stdlib/public/core/RandomAccessCollection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ where Index : Strideable,
160160
/// The indices that are valid for subscripting the collection, in ascending
161161
/// order.
162162
///
163-
/// A collections's `indices` property can hold a strong reference to the
163+
/// A collection's `indices` property can hold a strong reference to the
164164
/// collection itself, causing the collection to be non-uniquely referenced.
165165
/// If you mutate the collection while iterating over its indices, a strong
166166
/// reference can cause an unexpected copy of the collection. To avoid the

stdlib/public/core/RangeReplaceableCollection.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/// the elements of another collection.
2121
///
2222
/// In most cases, it's best to ignore this protocol and use the
23-
/// `RangeRepleaceableCollection` protocol instead, because it has a more
23+
/// `RangeReplaceableCollection` protocol instead, because it has a more
2424
/// complete interface.
2525
public protocol RangeReplaceableIndexable : Indexable {
2626
// FIXME(ABI)(compiler limitation): there is no reason for this protocol

test/expr/unary/keypath/keypath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func testKeyPath(a: A, b: B) {
7878
let _: String = #keyPath(A.propNSDict.anyKeyName)
7979
let _: String = #keyPath(A.propNSDict.anyKeyName.propA)
8080

81-
// NSSet property (AnyObject set elemtn).
81+
// NSSet property (AnyObject set element).
8282
let _: String = #keyPath(A.propNSSet)
8383
let _: String = #keyPath(A.propNSSet.URLsInText)
8484

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def argparse_executable(string):
9393
if os.access(string, os.X_OK):
9494
return os.path.abspath(string)
9595
raise argparse.ArgumentTypeError(
96-
"%r is not execuable" % string)
96+
"%r is not executable" % string)
9797

9898

9999
# Main entry point for the preset mode.

utils/swift_build_support/tests/test_xcrun.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515

1616

1717
@unittest.skipUnless(platform.system() == 'Darwin',
18-
'xcrun is avaiable in Darwin platform only')
18+
'xcrun is available in Darwin platform only')
1919
class XCRunTestCase(unittest.TestCase):
2020
def test_find(self):
2121
# Unknown tool
2222
self.assertIsNone(xcrun.find('a-tool-that-isnt-on-osx',
2323
sdk='macosx',
2424
toolchain='default'))
2525

26-
# Avaiable tool
26+
# Available tool
2727
self.assertTrue(xcrun.find('clang',
2828
sdk='macosx',
2929
toolchain='default').endswith('/clang'))

0 commit comments

Comments
 (0)