Skip to content

[CodeCompletion][NFC] Fix typo #30996

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
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 include/swift/IDE/CompletionInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CompletionInstance {
/// Returns \c if the callback was called. Returns \c false if the compiler
/// argument has changed, primary file is not the same, the \c Offset is not
/// in function bodies, or the interface hash of the file has changed.
bool performCachedOperaitonIfPossible(
bool performCachedOperationIfPossible(
const swift::CompilerInvocation &Invocation, llvm::hash_code ArgsHash,
llvm::MemoryBuffer *completionBuffer, unsigned int Offset,
DiagnosticConsumer *DiagC,
Expand Down
4 changes: 2 additions & 2 deletions lib/IDE/CompletionInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static DeclContext *getEquivalentDeclContextFromSourceFile(DeclContext *DC,

} // namespace

bool CompletionInstance::performCachedOperaitonIfPossible(
bool CompletionInstance::performCachedOperationIfPossible(
const swift::CompilerInvocation &Invocation, llvm::hash_code ArgsHash,
llvm::MemoryBuffer *completionBuffer, unsigned int Offset,
DiagnosticConsumer *DiagC,
Expand Down Expand Up @@ -454,7 +454,7 @@ bool swift::ide::CompletionInstance::performOperation(
// the cached completion instance.
std::lock_guard<std::mutex> lock(mtx);

if (performCachedOperaitonIfPossible(Invocation, ArgsHash, completionBuffer,
if (performCachedOperationIfPossible(Invocation, ArgsHash, completionBuffer,
Offset, DiagC, Callback))
return true;

Expand Down