mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Update comment for pop_and_inject
Co-authored-by: Leander Tentrup <ltentrup@users.noreply.github.com>
This commit is contained in:
parent
2a56323537
commit
1e9095ae8c
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue