Skip to content

Commit 4613b17

Browse files
Merge pull request #2359 from practicalswift/typo-fixes-20160501
[gardening] Fix recently introduced typos: "adavances" → "advances", etc. (10 typos)
2 parents 2cb7f4a + 540cb75 commit 4613b17

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ using ClassMetadata = TargetClassMetadata<InProcess>;
17731773
/// captures (these aren't in the DATA segment, however).
17741774
/// - a list of GenericMetadataSource objects - each element is a pair of:
17751775
/// - MangledTypeName (for a GenericTypeParameterTypeRef)
1776-
/// - EncodededMetadataSource (an encoded string like TypeRefs, but describe
1776+
/// - EncodedMetadataSource (an encoded string like TypeRefs, but describe
17771777
/// the method of crawling to the metadata for that generic type parameter.
17781778
struct CaptureDescriptor {
17791779
public:

include/swift/Runtime/Mutex.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#if (defined(__APPLE__) || defined(__linux__) || defined(__CYGWIN__) || defined(__FreeBSD__))
2424
#include "swift/Runtime/MutexPThread.h"
2525
#else
26-
#error "Implement equvalent of MutexPThread.h/cpp for your platform."
26+
#error "Implement equivalent of MutexPThread.h/cpp for your platform."
2727
#endif
2828

2929
namespace swift {
@@ -718,23 +718,23 @@ static_assert(std::is_literal_type<StaticMutex>::value,
718718
static_assert(std::is_literal_type<StaticUnsafeMutex>::value,
719719
"StaticUnsafeMutex must be literal type");
720720
#else
721-
// Your platform doesn't currently support staticly allocated Mutex
721+
// Your platform doesn't currently support statically allocated Mutex
722722
// you will possibly see global-constructors warnings
723723
#endif
724724

725725
#if CONDITION_SUPPORTS_CONSTEXPR
726726
static_assert(std::is_literal_type<StaticConditionVariable>::value,
727727
"StaticConditionVariable must be literal type");
728728
#else
729-
// Your platform doesn't currently support staticly allocated ConditionVar
729+
// Your platform doesn't currently support statically allocated ConditionVar
730730
// you will possibly see global-constructors warnings
731731
#endif
732732

733733
#if READWRITELOCK_SUPPORTS_CONSTEXPR
734734
static_assert(std::is_literal_type<StaticReadWriteLock>::value,
735735
"StaticReadWriteLock must be literal type");
736736
#else
737-
// Your platform doesn't currently support staticly allocated ReadWriteLocks
737+
// Your platform doesn't currently support statically allocated ReadWriteLocks
738738
// you will possibly see global-constructors warnings
739739
#endif
740740
}

lib/Parse/ParseExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2411,7 +2411,7 @@ bool Parser::isCollectionLiteralStartingWithLSquareLit() {
24112411
BacktrackingScope backtracking(*this);
24122412
(void)consumeToken(tok::l_square_lit);
24132413
switch (Tok.getKind()) {
2414-
// Handle both dengerate '#' and '# identifier'.
2414+
// Handle both degenerate '#' and '# identifier'.
24152415
case tok::pound:
24162416
(void) consumeToken();
24172417
if (Tok.is(tok::identifier)) skipSingle();

lib/SILOptimizer/Transforms/UnsafeGuaranteedPeephole.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ getSingleUnsafeGuaranteedValueResult(BuiltinInst *BI) {
8282
return std::make_pair(GuaranteedValue, Token);
8383
}
8484

85-
static bool hasUnsafeGuarantedOperand(SILValue UnsafeGuaranteedValue,
86-
SILValue UnsafeGuaranteedValueOperand,
87-
RCIdentityFunctionInfo &RCII,
88-
SILBasicBlock::iterator ReleaseIt) {
85+
static bool hasUnsafeGuaranteedOperand(SILValue UnsafeGuaranteedValue,
86+
SILValue UnsafeGuaranteedValueOperand,
87+
RCIdentityFunctionInfo &RCII,
88+
SILBasicBlock::iterator ReleaseIt) {
8989
assert(isa<StrongReleaseInst>(ReleaseIt) ||
9090
isa<ReleaseValueInst>(ReleaseIt) && "Expecting a release");
9191

@@ -125,27 +125,27 @@ static SILBasicBlock::iterator findReleaseToMatchUnsafeGuaranteedValue(
125125
while (LastReleaseIt != BB.begin() &&
126126
(((isa<StrongReleaseInst>(*LastReleaseIt) ||
127127
isa<ReleaseValueInst>(*LastReleaseIt)) &&
128-
!hasUnsafeGuarantedOperand(UnsafeGuaranteedRoot,
129-
UnsafeGuaranteedOpdRoot, RCIA,
130-
LastReleaseIt)) ||
128+
!hasUnsafeGuaranteedOperand(UnsafeGuaranteedRoot,
129+
UnsafeGuaranteedOpdRoot, RCIA,
130+
LastReleaseIt)) ||
131131
!LastReleaseIt->mayHaveSideEffects() ||
132132
isa<DebugValueInst>(*LastReleaseIt) ||
133133
isa<DebugValueInst>(*LastReleaseIt)))
134134
--LastReleaseIt;
135135
if ((isa<StrongReleaseInst>(*LastReleaseIt) ||
136136
isa<ReleaseValueInst>(*LastReleaseIt)) &&
137-
hasUnsafeGuarantedOperand(UnsafeGuaranteedRoot, UnsafeGuaranteedOpdRoot,
138-
RCIA, LastReleaseIt))
137+
hasUnsafeGuaranteedOperand(UnsafeGuaranteedRoot, UnsafeGuaranteedOpdRoot,
138+
RCIA, LastReleaseIt))
139139
return LastReleaseIt;
140140

141141
// Otherwise, try finding it after the "unsafeGuaranteedEnd".
142142
LastReleaseIt = std::next(SILBasicBlock::iterator(UnsafeGuaranteedEndI));
143143
while (LastReleaseIt != BB.end() &&
144144
(((isa<StrongReleaseInst>(*LastReleaseIt) ||
145145
isa<ReleaseValueInst>(*LastReleaseIt)) &&
146-
!hasUnsafeGuarantedOperand(UnsafeGuaranteedRoot,
147-
UnsafeGuaranteedOpdRoot, RCIA,
148-
LastReleaseIt)) ||
146+
!hasUnsafeGuaranteedOperand(UnsafeGuaranteedRoot,
147+
UnsafeGuaranteedOpdRoot, RCIA,
148+
LastReleaseIt)) ||
149149
!LastReleaseIt->mayHaveSideEffects() ||
150150
isa<DebugValueInst>(*LastReleaseIt) ||
151151
isa<DebugValueInst>(*LastReleaseIt)))
@@ -154,8 +154,8 @@ static SILBasicBlock::iterator findReleaseToMatchUnsafeGuaranteedValue(
154154
return LastReleaseIt;
155155
if ((!isa<StrongReleaseInst>(*LastReleaseIt) &&
156156
!isa<ReleaseValueInst>(*LastReleaseIt)) ||
157-
!hasUnsafeGuarantedOperand(UnsafeGuaranteedRoot, UnsafeGuaranteedOpdRoot,
158-
RCIA, LastReleaseIt))
157+
!hasUnsafeGuaranteedOperand(UnsafeGuaranteedRoot, UnsafeGuaranteedOpdRoot,
158+
RCIA, LastReleaseIt))
159159
return BB.end();
160160

161161
return LastReleaseIt;

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ static void inferObjCName(TypeChecker &tc, ValueDecl *decl) {
22922292
auto attr = decl->getAttrs().getAttribute<ObjCAttr>();
22932293
if (attr && attr->hasName()) return;
22942294

2295-
// When no overridde determined the Objective-C name, look for
2295+
// When no override determined the Objective-C name, look for
22962296
// requirements for which this declaration is a witness.
22972297
Optional<ObjCSelector> requirementObjCName;
22982298
for (auto req : tc.findWitnessedObjCRequirements(decl,

stdlib/public/core/Collection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ extension Collection {
11121112
///
11131113
/// - Parameter n: The number of elements to drop from the beginning of
11141114
/// the sequence. `n` must be greater than or equal to zero.
1115-
/// - Returns: A subsquence starting after the specified number of
1115+
/// - Returns: A subsequence starting after the specified number of
11161116
/// elements.
11171117
///
11181118
/// - Complexity: O(*n*), where *n* is the number of elements to drop from

stdlib/public/core/Sequence.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public protocol IteratorProtocol {
244244
///
245245
/// The `Sequence` protocol provides default implementations for many common
246246
/// operations that depend on sequential access to a sequence's values. For
247-
/// clearer, more consise code, the example above could use the array's
247+
/// clearer, more concise code, the example above could use the array's
248248
/// `contains(_:)` method, which every sequence inherits from `Sequence`,
249249
/// instead of iterating manually:
250250
///
@@ -445,7 +445,7 @@ public protocol Sequence {
445445
///
446446
/// - Parameter n: The number of elements to drop from the beginning of
447447
/// the sequence. `n` must be greater than or equal to zero.
448-
/// - Returns: A subsquence starting after the specified number of
448+
/// - Returns: A subsequence starting after the specified number of
449449
/// elements.
450450
///
451451
/// - Complexity: O(*n*), where *n* is the number of elements to drop from
@@ -1039,7 +1039,7 @@ extension Sequence where
10391039
///
10401040
/// - Parameter n: The number of elements to drop from the beginning of
10411041
/// the sequence. `n` must be greater than or equal to zero.
1042-
/// - Returns: A subsquence starting after the specified number of
1042+
/// - Returns: A subsequence starting after the specified number of
10431043
/// elements.
10441044
///
10451045
/// - Complexity: O(*n*), where *n* is the number of elements to drop from

stdlib/public/core/SetAlgebra.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
///
1919
/// You use types that conform to the `SetAlgebra` protocol when you need
2020
/// efficient membership tests or mathematical set operations such as
21-
/// intersection, union, and substraction. In the standard library, you can
21+
/// intersection, union, and subtraction. In the standard library, you can
2222
/// use the `Set` type with elements of any hashable type, or you can easily
2323
/// create bit masks with `SetAlgebra` conformance using the `OptionSet`
2424
/// protocol. See those types for more information.

utils/swift-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Use `M-x hs-show-all' to show them again."
182182
s))
183183

184184
(defun swift-skip-comments-and-space ()
185-
"Skip comments and whiltespace, returning t"
185+
"Skip comments and whitespace, returning t"
186186
(while (forward-comment 1))
187187
t)
188188

utils/swift_build_support/tests/test_cmake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def test_common_options_asan_ubsan(self):
104104
"-DCMAKE_C_COMPILER:PATH=/path/to/clang",
105105
"-DCMAKE_CXX_COMPILER:PATH=/path/to/clang++"])
106106

107-
def test_common_options_export_compie_commands(self):
107+
def test_common_options_export_compile_commands(self):
108108
args = self.default_args()
109109
args.export_compile_commands = True
110110
cmake = self.cmake(args)

0 commit comments

Comments
 (0)