Skip to content

Commit 9a67365

Browse files
committed
Merge pull request #75 from johankj/master
Remove instances of duplicated words
2 parents 13067ed + fa76656 commit 9a67365

30 files changed

+45
-46
lines changed

docs/HighLevelSILOptimizations.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ To complete the semantics understood by the optimizer, we define these relations
237237

238238
interferes-with
239239

240-
Given idempotent ``OpA``, the the sequence "``OpA, OpB, OpA``" is
240+
Given idempotent ``OpA``, the sequence "``OpA, OpB, OpA``" is
241241
semantically equivalent to the sequence "``OpA, OpB``" *iff* ``OpB``
242242
does not interfere with ``OpA``.
243243

docs/ObjectInitialization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ make use of ``self``. This is important uses of ``self``---say,
515515
calling a method on ``self``---could end up referring to stored
516516
properties before they are initialized. Consider the following
517517
Objective-C code, where instance variables are initialized *after* the
518-
call to the the superclass initializer::
518+
call to the superclass initializer::
519519

520520
@interface A : NSObject
521521
- (instancetype)init;

docs/archive/LangRef.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ <h3 id="decl-import">import Declarations</h3>
106106

107107
<p>An import without an explicit import-kind names a module; all of the
108108
module's members are imported into the current scope. The module's name is
109-
also imported into the the current scope in order to allow qualified access
110-
to the module's members, which can be useful for disambiguation.</p>
109+
also imported into the current scope in order to allow qualified access to
110+
the module's members, which can be useful for disambiguation.</p>
111111

112112
<p>If an import-kind is provided, the last element of the import path is
113113
taken to be the name of a decl <em>within</em> the module named by the rest of

docs/proposals/OptimizerEffects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ elt2's destructor can't change the uniqueness state of the arrays.::
492492
setElement(&a.array, elt2, i)
493493
}
494494

495-
In the the following loop it is not safe to hoist the makeUnique(&a)
495+
In the following loop it is not safe to hoist the makeUnique(&a)
496496
call even for trivial types. 'appendAssumingUnique' captures its argument 'a'
497497
which forces a copy on 'a' on every iteration of the loop.::
498498

include/swift/AST/AvailabilitySpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class VersionConstraintAvailabilitySpec : public AvailabilitySpec {
9696
/// deployment target. This specification is designed to ease porting
9797
/// to new platforms. Because new platforms typically branch from
9898
/// existing platforms, the wildcard allows an #available() check to do the
99-
/// "right" thing (executing the the guarded branch) on the new platform without
99+
/// "right" thing (executing the guarded branch) on the new platform without
100100
/// requiring a modification to every availablity guard in the program. Note
101101
/// that we still do compile-time availability checking with '*', so the
102102
/// compiler will still catch references to potentially unavailable symbols.

include/swift/ASTSectionImporter/ASTSectionImporter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace swift {
2727
/// section, this function makes memory buffer copies of all swift
2828
/// modules found in it and registers them using
2929
/// registerMemoryBuffer() so they can be found by loadModule(). The
30-
/// the access path of all modules found in the section is appended
31-
/// to the vector foundModules.
30+
/// access path of all modules found in the section is appended to
31+
/// the vector foundModules.
3232
/// \return true if successful.
3333
bool parseASTSection(SerializedModuleLoader* SML, StringRef Data,
3434
SmallVectorImpl<std::string> &foundModules);

include/swift/Basic/ClusteredBitVector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ClusteredBitVector {
9999
///
100100
/// c) 0 < LengthInBits < ChunkSizeInBits. In this case, Data contains
101101
/// a single chunk, with its unused high bits zeroed like in the
102-
/// the out-of-line case.
102+
/// out-of-line case.
103103
///
104104
/// Therefore, an efficient way to test whether all bits are zero:
105105
/// Data != 0. (isInlineAndAllClear()) Not *guaranteed* to find

include/swift/Runtime/ObjCBridge.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ typedef struct objc_image_info {
5555

5656
// Class and metaclass construction from a compiler-generated memory image.
5757
// cls and cls->isa must each be OBJC_MAX_CLASS_SIZE bytes.·
58-
// Extra bytes not used the the metadata must be zero.
58+
// Extra bytes not used the metadata must be zero.
5959
// info is the same objc_image_info that would be emitted by a static compiler.
6060
// Returns nil if a class with the same name already exists.
6161
// Returns nil if the superclass is nil and the class is not marked as a root.

lib/ClangImporter/ImportDecl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4332,7 +4332,7 @@ namespace {
43324332
return subscript;
43334333
}
43344334

4335-
/// Import the the accessor and its attributes.
4335+
/// Import the accessor and its attributes.
43364336
FuncDecl *importAccessor(clang::ObjCMethodDecl *clangAccessor,
43374337
DeclContext *dc) {
43384338
auto *accessor =
@@ -4711,7 +4711,7 @@ namespace {
47114711

47124712
/// \brief Import the members of all of the protocols to which the given
47134713
/// Objective-C class, category, or extension explicitly conforms into
4714-
/// the given list of members, so long as the the method was not already
4714+
/// the given list of members, so long as the method was not already
47154715
/// declared in the class.
47164716
///
47174717
/// FIXME: This whole thing is a hack, because name lookup should really

lib/ClangImporter/ImporterImpl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ class LLVM_LIBRARY_VISIBILITY ClangImporter::Implementation
957957
/// \returns The named type, or null if the type could not be found.
958958
Type getNamedSwiftType(Module *module, StringRef name);
959959

960-
/// \brief Retrieve a specialization of the the named Swift type, e.g.,
960+
/// \brief Retrieve a specialization of the named Swift type, e.g.,
961961
/// UnsafeMutablePointer<T>.
962962
///
963963
/// \param module The name of the module in which the type should occur.

0 commit comments

Comments
 (0)