Skip to content

Commit 59f1f10

Browse files
authored
Merge pull request #34799 from kkshinkai/main
Fix misspellings
2 parents aa8ce55 + a0f0747 commit 59f1f10

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/IRGen/GenConstant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace irgen {
2727
/// Construct a ConstantInt from an IntegerLiteralInst.
2828
llvm::Constant *emitConstantInt(IRGenModule &IGM, IntegerLiteralInst *ILI);
2929

30-
/// Construct a zero from a zero intializer BuiltinInst.
30+
/// Construct a zero from a zero initializer BuiltinInst.
3131
llvm::Constant *emitConstantZero(IRGenModule &IGM, BuiltinInst *Bi);
3232

3333
/// Construct a ConstantFP from a FloatLiteralInst.

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static ParserStatus parseDefaultArgument(
7070
SourceLoc equalLoc = P.consumeToken();
7171

7272
if (P.SF.Kind == SourceFileKind::Interface) {
73-
// Swift module interfaces don't synthesize inherited intializers and
73+
// Swift module interfaces don't synthesize inherited initializers and
7474
// instead include them explicitly in subclasses. Since the
7575
// \c DefaultArgumentKind of these initializers is \c Inherited, this is
7676
// represented textually as `= super` in the interface.

lib/TBDGen/TBDGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ void TBDGenVisitor::addDerivativeConfiguration(AbstractFunctionDecl *original,
631631
/// the initializer given a decl.
632632
/// The rule is that structs and convenience init of classes emit a
633633
/// dynamic replacement for the allocator.
634-
/// Designated init of classes emit a dynamic replacement for the intializer.
634+
/// Designated init of classes emit a dynamic replacement for the initializer.
635635
/// This is because the super class init call is emitted to the initializer and
636636
/// needs to be dynamic.
637637
static bool shouldUseAllocatorMangling(const AbstractFunctionDecl *afd) {

test/AutoDiff/Sema/transpose_attr_type_checking.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ extension Struct where T: Differentiable, T == T.TangentVector {
516516
fatalError()
517517
}
518518

519-
// Test instance transpose for static original intializer.
519+
// Test instance transpose for static original initializer.
520520
// TODO(TF-1015): Add improved instance/static member mismatch error.
521521
// expected-error @+1 {{referenced declaration 'init' could not be resolved}}
522522
@transpose(of: init, wrt: 0)

0 commit comments

Comments
 (0)