Skip to content

Commit ff827e0

Browse files
[gardening] Fix recently introduced typos
1 parent 861f70e commit ff827e0

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

include/swift/Migrator/SyntacticMigratorPass.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SyntacticMigratorPass {
3636
const clang::edit::Commit &getEdits() const;
3737
};
3838

39-
} // end namespae migrator
39+
} // end namespace migrator
4040
} // end namespace swift
4141

4242
#endif // SWIFT_MIGRATOR_SYNTACTICMIGRATORPASS_H

include/swift/SIL/SILInstruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4994,7 +4994,7 @@ class EndLifetimeInst
49944994

49954995
/// An unsafe conversion in between ownership kinds.
49964996
///
4997-
/// This is used today in destructors where due to objective-c legacy
4997+
/// This is used today in destructors where due to Objective-C legacy
49984998
/// constraints, we need to be able to convert a guaranteed parameter to an owned
49994999
/// parameter.
50005000
class UncheckedOwnershipConversionInst

lib/AST/ASTMangler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ void ASTMangler::appendImplFunctionType(SILFunctionType *fn) {
10361036
/// Mangle the context of the given declaration as a <context.
10371037
/// This is the top-level entrypoint for mangling <context>.
10381038
void ASTMangler::appendContextOf(const ValueDecl *decl) {
1039-
// Declarations provided provided by a C module have a special context
1039+
// Declarations provided by a C module have a special context
10401040
// mangling.
10411041
// known-context ::= 'So'
10421042
//

lib/SIL/SILBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ SILValue SILBuilder::emitObjCToThickMetatype(SILLocation Loc, SILValue Op,
345345
return createObjCToThickMetatype(Loc, Op, Ty);
346346
}
347347

348-
/// Add opned archetypes defined or used by the current instruction.
348+
/// Add opened archetypes defined or used by the current instruction.
349349
/// If there are no such opened archetypes in the current instruction
350350
/// and it is an instruction with just one operand, try to perform
351351
/// the same action for the instruction defining an operand, because

lib/SILOptimizer/IPO/EagerSpecializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ emitInvocation(SILBuilder &Builder,
249249
Builder.getModule());
250250

251251
bool isNonThrowing = false;
252-
// It it a function whose type claims it is throwing, but
252+
// It is a function whose type claims it is throwing, but
253253
// it actually never throws inside its body?
254254
if (CanSILFuncTy->hasErrorResult() &&
255255
CalleeFunc->findThrowBB() == CalleeFunc->end()) {

lib/SILOptimizer/Mandatory/DiagnoseStaticExclusivity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class AccessedStorage {
138138
}
139139

140140
/// Returns the ValueDecl for the underlying storage, if it can be
141-
/// determined. Otherwise returns null. For diagonostic purposes.
141+
/// determined. Otherwise returns null. For diagnostic purposes.
142142
const ValueDecl *getStorageDecl() const {
143143
switch(Kind) {
144144
case AccessedStorageKind::GlobalVar:

lib/SILOptimizer/Utils/Generics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ namespace swift {
848848

849849
/// A helper class for creating partially specialized function signatures.
850850
///
851-
/// The following naming convention is used to describe the memebrs and
851+
/// The following naming convention is used to describe the members and
852852
/// functions:
853853
/// Caller - the function which invokes the callee.
854854
/// Callee - the callee to be specialized.

stdlib/public/core/StringRangeReplaceableCollection.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,13 @@ extension String {
425425
}
426426

427427
extension String {
428-
@available(*, unavailable, message: "Operator '+' cannot be used to append a String to a seqeunce of strings")
428+
@available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
429429
public static func + <S : Sequence>(lhs: S, rhs: String) -> Never
430430
where S.Iterator.Element == String {
431431
fatalError()
432432
}
433433

434-
@available(*, unavailable, message: "Operator '+' cannot be used to append a String to a seqeunce of strings")
434+
@available(*, unavailable, message: "Operator '+' cannot be used to append a String to a sequence of strings")
435435
public static func + <S : Sequence>(lhs: String, rhs: S) -> Never
436436
where S.Iterator.Element == String {
437437
fatalError()

test/IRGen/keypaths.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ sil_vtable C {}
160160
// CHECK-64-SAME: i32 -2147483620,
161161
// -- 0x8000_0010 - instantiable in-line, size 16
162162
// CHECK-32-SAME: i32 -2147483636,
163-
// -- 0x3c00_0000 - computed, settable, nmutating, identified by property offset, no args
163+
// -- 0x3c00_0000 - computed, settable, nonmutating, identified by property offset, no args
164164
// CHECK-SAME: i32 1006632960,
165165
// CHECK-SAME: [[WORD]]
166166
// CHECK-SAME: void (%swift.function*, %T8keypaths1SV*)* @m_get,

test/Parse/recovery.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ func test23086402(a: A23086402) {
714714
// and `ss + s` becomes ambiguous. Diambiguation is provided with the unavailable overload
715715
// in order to produce a meaningful diagnostics. (Related: <rdar://problem/31763930>)
716716
func test23550816(ss: [String], s: String) {
717-
print(ss + s) // expected-error {{'+' is unavailable: Operator '+' cannot be used to append a String to a seqeunce of strings}}
717+
print(ss + s) // expected-error {{'+' is unavailable: Operator '+' cannot be used to append a String to a sequence of strings}}
718718
}
719719
720720
// <rdar://problem/23719432> [practicalswift] Compiler crashes on &(Int:_)

0 commit comments

Comments
 (0)