Skip to content

Fix misspellings #34799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/IRGen/GenConstant.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace irgen {
/// Construct a ConstantInt from an IntegerLiteralInst.
llvm::Constant *emitConstantInt(IRGenModule &IGM, IntegerLiteralInst *ILI);

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

/// Construct a ConstantFP from a FloatLiteralInst.
Expand Down
2 changes: 1 addition & 1 deletion lib/Parse/ParsePattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static ParserStatus parseDefaultArgument(
SourceLoc equalLoc = P.consumeToken();

if (P.SF.Kind == SourceFileKind::Interface) {
// Swift module interfaces don't synthesize inherited intializers and
// Swift module interfaces don't synthesize inherited initializers and
// instead include them explicitly in subclasses. Since the
// \c DefaultArgumentKind of these initializers is \c Inherited, this is
// represented textually as `= super` in the interface.
Expand Down
2 changes: 1 addition & 1 deletion lib/TBDGen/TBDGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ void TBDGenVisitor::addDerivativeConfiguration(AbstractFunctionDecl *original,
/// the initializer given a decl.
/// The rule is that structs and convenience init of classes emit a
/// dynamic replacement for the allocator.
/// Designated init of classes emit a dynamic replacement for the intializer.
/// Designated init of classes emit a dynamic replacement for the initializer.
/// This is because the super class init call is emitted to the initializer and
/// needs to be dynamic.
static bool shouldUseAllocatorMangling(const AbstractFunctionDecl *afd) {
Expand Down
2 changes: 1 addition & 1 deletion test/AutoDiff/Sema/transpose_attr_type_checking.swift
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ extension Struct where T: Differentiable, T == T.TangentVector {
fatalError()
}

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