Skip to content

Commit c00e9ed

Browse files
committed
Merge pull request #1087 from practicalswift/double-spaces
[gardening] Fix typos: "word[space][space]word" (two spaces) → "word[space]word" (one space)
2 parents 3094ca9 + 73b1d08 commit c00e9ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+54
-54
lines changed

docs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if(LITRE_EXECUTABLE)
8282
VERBATIM
8383
)
8484

85-
# Only update the real top-level CMakeLists.txt if something changed
85+
# Only update the real top-level CMakeLists.txt if something changed
8686
add_custom_command(
8787
OUTPUT
8888
"litre-tests/CMakeLists.txt"

docs/ErrorHandling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ of failability.
578578

579579
One limitation of this approach is that we need to be able to reconstruct
580580
the selector to use when an overload of a method is introduced. For this
581-
reason, the import is likely to be limited to methods where the error
581+
reason, the import is likely to be limited to methods where the error
582582
parameter is the last one and the corresponding selector
583583
chunk is either ``error:`` or the first chunk (see below). Empirically,
584584
this seems to do the right thing for all but two sets of APIs in the

docs/TypeChecker.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ the Swift type system:
106106
flavors of equality constraints:
107107

108108
- Exact equality constraints, or "binding", written ``T0 := X``
109-
for some type variable ``T0`` and type ``X``, which requires
109+
for some type variable ``T0`` and type ``X``, which requires
110110
that ``T0`` be exactly identical to ``X``;
111111
- Equality constraints, written ``X == Y`` for types ``X`` and
112112
``Y``, which require ``X`` and ``Y`` to have the same type,

docs/archive/LangRef.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ <h3 id="type-function">Function Types</h3>
10931093

10941094
<p>The result type of a function type must
10951095
be <a href="#materializable">materializable</a>. The argument type of a
1096-
function is always required to be parenthesized (a tuple). The behavior
1096+
function is always required to be parenthesized (a tuple). The behavior
10971097
of function types may be modified with the <a
10981098
href="#attribute-autoclosure"><tt>autoclosure</tt> attribute</a>.</p>
10991099

docs/doxygen.intro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
/// Welcome to Swift.
55
///
66
/// This documentation describes the @b internal software that makes
7-
/// up Swift, not the @b external use of Swift. There are no instructions
7+
/// up Swift, not the @b external use of Swift. There are no instructions
88
/// here on how to use Swift, only the APIs that make up the software. For usage
99
/// instructions, please see the programmer's guide or reference manual.
1010
///

docs/proposals/OptimizerEffects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ destructor can have arbitrary side-effects. Therefore, it is not valid to hoist
482482
the makeUnique in the code without proving that 'T's destructor cannot change
483483
the uniqueness state. This is trivial for trivial types but requires a more
484484
sophisticated analysis for class types (and in general cannot be disproved). In
485-
following example we can only hoist makeUnique if we can prove that elt's, and
485+
following example we can only hoist makeUnique if we can prove that elt's, and
486486
elt2's destructor can't change the uniqueness state of the arrays.::
487487

488488
for i in 0 ..< min(a.size, b.size) {

include/swift/AST/SILOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SILOptions {
5151
OptimizeUnchecked
5252
};
5353

54-
/// Controls how perform SIL linking.
54+
/// Controls how to perform SIL linking.
5555
LinkingMode LinkMode = LinkNormal;
5656

5757
/// Remove all runtime assertions during optimizations.

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1924,7 +1924,7 @@ class ModuleType : public TypeBase {
19241924

19251925
// Implement isa/cast/dyncast/etc.
19261926
static bool classof(const TypeBase *T) {
1927-
return T->getKind() == TypeKind::Module;
1927+
return T->getKind() == TypeKind::Module;
19281928
}
19291929

19301930
private:

include/swift/LLVMPasses/PassesFwd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- PassesFwd.h - Creation functions for LLVM passes ------*- C++ -*-===//
1+
//===--- PassesFwd.h - Creation functions for LLVM passes -------*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/SIL/PatternMatch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ inline match_combine_and<LTy, RTy> m_CombineAnd(const LTy &L, const RTy &R) {
136136

137137
/// Helper class to track the return type of vararg m_CombineOr matcher.
138138
template <typename ...Arguments>
139-
struct OneOf_match;
139+
struct OneOf_match;
140140

141141
template <typename T0>
142142
struct OneOf_match<T0> {
@@ -711,8 +711,8 @@ m_Ext(const T0 &Op0) {
711711

712712
/// Matcher for any of the builtin CheckedTrunc instructions.
713713
template <typename T0>
714-
inline typename OneOf_match<BuiltinApplyTy<T0>, BuiltinApplyTy<T0>,
715-
BuiltinApplyTy<T0>, BuiltinApplyTy<T0>>::Ty
714+
inline typename OneOf_match<BuiltinApplyTy<T0>, BuiltinApplyTy<T0>,
715+
BuiltinApplyTy<T0>, BuiltinApplyTy<T0>>::Ty
716716
m_CheckedTrunc(const T0 &Op0) {
717717
return m_UToSCheckedTrunc(Op0) || m_SToUCheckedTrunc(Op0) ||
718718
m_UToUCheckedTrunc(Op0) || m_SToSCheckedTrunc(Op0);

0 commit comments

Comments
 (0)