File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -651,9 +651,13 @@ impl<H: Hashable + Clone + PartialEq> LocatedPrunableTree<H> {
651
651
}
652
652
}
653
653
654
- // In the case that we are replacing a node entirely, we need to extend the
655
- // subtree up to the level of the node being replaced, adding Nil siblings
656
- // and recording the presence of those incomplete nodes when necessary
654
+ // In the case that we are replacing a node entirely, we need to extend the subtree up to the
655
+ // level of the node being replaced, adding Nil siblings and recording the presence of those
656
+ // incomplete nodes when necessary. The newly created root node will be annotated with the
657
+ // provided value.
658
+ //
659
+ // If the root level of `self` is greater than or equal to the requested level, no extension
660
+ // will be performed, but the root node will still be reannotated.
657
661
fn extend_to_level (
658
662
self ,
659
663
level : Level ,
You can’t perform that action at this time.
0 commit comments