From 1e9095ae8c98813ba2e89318f35f0ec15cc833b3 Mon Sep 17 00:00:00 2001 From: Paul Daniel Faria Date: Tue, 23 Jun 2020 12:15:45 -0400 Subject: Update comment for pop_and_inject Co-authored-by: Leander Tentrup --- crates/ra_ide/src/syntax_highlighting.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs index 3dffddce5..4061a335e 100644 --- a/crates/ra_ide/src/syntax_highlighting.rs +++ b/crates/ra_ide/src/syntax_highlighting.rs @@ -339,8 +339,8 @@ impl HighlightedRangeStack { /// can only modify the last range currently on the stack. /// Can be used to do injections that span multiple ranges, like the /// doctest injection below. - /// If `inject` is set to true, the parent range is deleted instead of - /// intersected. + /// If `overwrite_parent` is non-optional, the highlighting of the parent range + /// is overwritten with the argument. /// /// Note that `pop` can be simulated by `pop_and_inject(false)` but the /// latter is computationally more expensive. -- cgit v1.2.3