Skip to content

Commit 1e9095a

Browse files
Nashenas88ltentrup
andauthored
Update comment for pop_and_inject
Co-authored-by: Leander Tentrup <[email protected]>
1 parent 2a56323 commit 1e9095a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ra_ide/src/syntax_highlighting.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ impl HighlightedRangeStack {
339339
/// can only modify the last range currently on the stack.
340340
/// Can be used to do injections that span multiple ranges, like the
341341
/// doctest injection below.
342-
/// If `inject` is set to true, the parent range is deleted instead of
343-
/// intersected.
342+
/// If `overwrite_parent` is non-optional, the highlighting of the parent range
343+
/// is overwritten with the argument.
344344
///
345345
/// Note that `pop` can be simulated by `pop_and_inject(false)` but the
346346
/// latter is computationally more expensive.

0 commit comments

Comments
 (0)