diff --git a/src/operations/Completion.cpp b/src/operations/Completion.cpp index 25d5c1a2..0cf8f27d 100644 --- a/src/operations/Completion.cpp +++ b/src/operations/Completion.cpp @@ -487,7 +487,7 @@ std::vector WorkspaceFolder::completion(const lsp::Completi size_t argIndex = 0; size_t snippetIndex = 1; - auto& [minCount, _] = Luau::getParameterExtents(Luau::TxnLog::empty(), ftv->argTypes, true); + auto [minCount, _] = Luau::getParameterExtents(Luau::TxnLog::empty(), ftv->argTypes, true); auto it = Luau::begin(ftv->argTypes); for (; it != Luau::end(ftv->argTypes); ++it, ++argIndex)