mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
go/token: tweak comment
(accidentally omitted from CL 675736) Change-Id: I05ed8fcb7bb4109862a47701c427d8efc17b9f31 Reviewed-on: https://go-review.googlesource.com/c/go/+/678315 TryBot-Bypass: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Robert Findley <rfindley@google.com> Auto-Submit: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
792548a483
commit
0c0094c893
1 changed files with 3 additions and 2 deletions
|
|
@ -390,8 +390,9 @@ func (t *tree) deleteSwap(pos **node) {
|
|||
t.rebalanceUp(unbalanced)
|
||||
}
|
||||
|
||||
// deleteMin updates *zpos to the minimum (leftmost) element
|
||||
// in that subtree.
|
||||
// deleteMin updates the subtree rooted at *zpos to delete its minimum
|
||||
// (leftmost) element, which may be *zpos itself. It returns the
|
||||
// deleted node.
|
||||
func (t *tree) deleteMin(zpos **node) (z *node) {
|
||||
for (*zpos).left != nil {
|
||||
zpos = &(*zpos).left
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue