Skip to content

Commit d352652

Browse files
Merge pull request #7727 from practicalswift/typos-20170223
[gardening] Fix typos
2 parents 82073f9 + 33a5601 commit d352652

File tree

19 files changed

+27
-29
lines changed

19 files changed

+27
-29
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function(_add_variant_c_compile_flags)
228228
endif()
229229
endif()
230230

231-
# MSVC/clang-cl don't support -fno-pic or -fms-compatability-version.
231+
# MSVC/clang-cl don't support -fno-pic or -fms-compatibility-version.
232232
if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
233233
list(APPEND result -fno-pic)
234234
list(APPEND result "-fms-compatibility-version=1900")

docs/OwnershipManifesto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ iteration variable `inout`:
11241124
```
11251125

11261126
The sequence operand must be a storage reference expression.
1127-
The storage will be accessed for the duraton of the loop,
1127+
The storage will be accessed for the duration of the loop,
11281128
which (as above) will prevent any other overlapping accesses
11291129
to the collection. (But this rule does not apply if the
11301130
collection type defines the operation as a non-mutating

docs/SIL.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3867,7 +3867,7 @@ container referenced by ``%0``. The protocol conformances associated
38673867
with this existential container are associated directly with the
38683868
archetype ``$*@opened P``. This pointer can be used with any operation
38693869
on archetypes, such as ``witness_method`` assuming this operation obeys the
3870-
access contraint: The returned address can either allow ``mutable_access`` or
3870+
access constraint: The returned address can either allow ``mutable_access`` or
38713871
``immutable_access``. Users of the returned address may only consume
38723872
(e.g ``destroy_addr`` or ``copy_addr [take]``) or mutate the value at the
38733873
address if they have ``mutable_access``.

include/swift/AST/GenericSignatureBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class RequirementSource : public llvm::FoldingSetNode {
138138

139139
/// The actual storage, described by \c storageKind.
140140
union {
141-
/// The type representation descibing where the requirement came from.
141+
/// The type representation describing where the requirement came from.
142142
const TypeRepr *typeRepr;
143143

144144
/// Where a requirement came from.

include/swift/IDE/Utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class DeclNameViewer {
307307
unsigned commonPartsCount(DeclNameViewer &Other) const;
308308
};
309309

310-
/// This provide a utility for writing to a underlying string buffer mulitiple
310+
/// This provide a utility for writing to a underlying string buffer multiple
311311
/// string pieces and retrieve them later when the underlying buffer is stable.
312312
class DelayedStringRetriever : public raw_ostream {
313313
SmallVectorImpl<char> &OS;

include/swift/Parse/Lexer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class Lexer {
233233
lexImpl();
234234
}
235235

236-
/// Lex a full token includig leading and trailing trivia.
236+
/// Lex a full token including leading and trailing trivia.
237237
syntax::RC<syntax::TokenSyntax> fullLex();
238238

239239
bool isKeepingComments() const {

include/swift/Syntax/DeclSyntax.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,14 +221,14 @@ class StructDeclSyntax final : public DeclSyntax {
221221
withGenericParameterClause(GenericParameterClauseSyntax NewGenericParams)
222222
const;
223223

224-
/// Return the where clayse of the struct declaration.
224+
/// Return the where clause of the struct declaration.
225225
GenericWhereClauseSyntax getGenericWhereClause() const;
226226

227227
/// Return a StructDeclSyntax with the given generic where clause.
228228
StructDeclSyntax
229229
withWhereClause(GenericWhereClauseSyntax NewWhereClause) const;
230230

231-
/// Return the left brace '{' token of the struct declartion.
231+
/// Return the left brace '{' token of the struct declaration.
232232
RC<TokenSyntax> getLeftBraceToken() const;
233233

234234
/// Return a StructDeclSyntax with the given left brace '{' token.
@@ -240,7 +240,7 @@ class StructDeclSyntax final : public DeclSyntax {
240240
/// Return a StructDeclSyntax with the given new members.
241241
StructDeclSyntax withMembers(DeclMembersSyntax NewMembers) const;
242242

243-
/// Return the right brace '}' token of the struct declartion.
243+
/// Return the right brace '}' token of the struct declaration.
244244
RC<TokenSyntax> getRightBraceToken() const;
245245

246246
/// Return a StructDeclSyntax with the given right brace '}' token.

include/swift/Syntax/References.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ template <typename Inner>
2424
using RC = llvm::IntrusiveRefCntPtr<Inner>;
2525

2626
} // end namespace syntax
27-
} // end namespae swift
27+
} // end namespace swift
2828

2929
#endif // SWIFT_SYNTAX_REFERENCES_H

include/swift/Syntax/StmtSyntax.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class FallthroughStmtSyntax : public StmtSyntax {
267267
/// fallthrough statement.
268268
RC<TokenSyntax> getFallthroughKeyword() const;
269269

270-
/// Return a new FallthroughtStmtSyntax with the given fallthrough
270+
/// Return a new FallthroughStmtSyntax with the given fallthrough
271271
/// keyword.
272272
FallthroughStmtSyntax
273273
withFallthroughKeyword(RC<TokenSyntax> NewFallthroughKeyword) const;

include/swift/Syntax/Trivia.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ enum class TriviaKind {
122122
Backtick,
123123
};
124124

125-
/// A contiguous stretch of a single kind of trivia. The constiuent part of
125+
/// A contiguous stretch of a single kind of trivia. The constituent part of
126126
/// a `Trivia` collection.
127127
///
128128
/// For example, four spaces would be represented by

0 commit comments

Comments
 (0)