From 45112aa8c0a55f003acc3b20646e840909dea08f Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 24 May 2021 22:21:25 +0300 Subject: internal: rename hypothetical -> speculative Lets steal this good naming from Roslyn before I forget about it yet again. --- crates/ide_completion/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_completion/src/lib.rs') diff --git a/crates/ide_completion/src/lib.rs b/crates/ide_completion/src/lib.rs index 645349215..1152a9850 100644 --- a/crates/ide_completion/src/lib.rs +++ b/crates/ide_completion/src/lib.rs @@ -107,7 +107,7 @@ pub use crate::{ /// identifier prefix/fuzzy match should be done higher in the stack, together /// with ordering of completions (currently this is done by the client). /// -/// # Hypothetical Completion Problem +/// # Speculative Completion Problem /// /// There's a curious unsolved problem in the current implementation. Often, you /// want to compute completions on a *slightly different* text document. @@ -121,7 +121,7 @@ pub use crate::{ /// doesn't allow such "phantom" inputs. /// /// Another case where this would be instrumental is macro expansion. We want to -/// insert a fake ident and re-expand code. There's `expand_hypothetical` as a +/// insert a fake ident and re-expand code. There's `expand_speculative` as a /// work-around for this. /// /// A different use-case is completion of injection (examples and links in doc -- cgit v1.2.3