@@ -226,14 +226,14 @@ impl Completion {
226226 match event {
227227 PromptEvent::Abort => {}
228228 PromptEvent::Update => {
229− // Update creates "ghost" transactiosn which are not send to the
230− // lsp server to avoid messing up rerequesting completions. Once a
231− // completion has been selected (with) tab it's always accepted whenever anything
229+ // Update creates "ghost" transactions which are not sent to the
230+ // lsp server to avoid messing up re-requesting completions. Once a
231+ // completion has been selected (with tab, c-n or c-p) it's always accepted whenever anything
232232 // is typed. The only way to avoid that is to explicitly abort the completion
233− // with esc/c-c. This will remove the "ghost" transaction.
233+ // with c-c. This will remove the "ghost" transaction.
234234 //
235− // The ghost transaction is modeled with a transaction that is not send to the LS.
236− // (apply_temporary) and a savepoint. It's extremly important this savepoint is restored
235+ // The ghost transaction is modeled with a transaction that is not sent to the LS.
236+ // (apply_temporary) and a savepoint. It's extremely important this savepoint is restored
237237 // (also without sending the transaction to the LS) *before any further transaction is applied*.
238238 // Otherwise incremental sync breaks (since the state of the LS doesn't match the state the transaction
239239 // is applied to).
@@ -293,7 +293,7 @@ impl Completion {
293293 changes: completion_changes(&transaction, trigger_offset),
294294 });
295295
296− // TOOD: add additional _edits to completion_changes?
296+ // TODO: add additional _edits to completion_changes?
297297 if let Some(additional_edits) = item.item.additional_text_edits {
298298 if !additional_edits.is_empty() {
299299 let transaction = util::generate_transaction_from_edits(