Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(260)

Issue 12265043: code review 12265043: container/heap: add Fix and document the min is element 0. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by peted
Modified:
10 years, 9 months ago
Reviewers:
r, gri, bradfitz
CC:
gri, rsc, bradfitz, r, golang-dev
Visibility:
Public.

Description

container/heap: add Fix and document the min is element 0. Fixes issue 5372. Fixes issue 5577.

Patch Set 1 #

Patch Set 2 : diff -r 6f0b4e0f38f8 https://code.google.com/p/go #

Patch Set 3 : diff -r 6f0b4e0f38f8 https://code.google.com/p/go #

Patch Set 4 : diff -r 9e1bac2f6a98 https://code.google.com/p/go #

Total comments: 6

Patch Set 5 : diff -r 4a3d328fe8e9 https://code.google.com/p/go #

Patch Set 6 : diff -r 4a3d328fe8e9 https://code.google.com/p/go #

Total comments: 3

Patch Set 7 : diff -r 58c839988402 https://code.google.com/p/go #

Total comments: 1

Patch Set 8 : diff -r 58c839988402 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
M src/pkg/container/heap/example_intheap_test.go View 1 1 chunk +6 lines, -2 lines 0 comments Download
M src/pkg/container/heap/heap.go View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M src/pkg/container/heap/heap_test.go View 1 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 18
peted
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
10 years, 9 months ago (2013-08-01 15:42:16 UTC) #1
rsc
s/()// in the description. Functions are just names, no need for a () suffix.
10 years, 9 months ago (2013-08-01 15:55:20 UTC) #2
peted
On 2013/08/01 15:55:20, rsc wrote: > s/()// in the description. > Functions are just names, ...
10 years, 9 months ago (2013-08-01 15:58:43 UTC) #3
rsc
https://codereview.appspot.com/12265043/diff/11001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/11001/src/pkg/container/heap/heap.go#newcode9 src/pkg/container/heap/heap.go:9: // This means the minimum element of the entire ...
10 years, 9 months ago (2013-08-02 20:05:51 UTC) #4
peted
https://codereview.appspot.com/12265043/diff/11001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/11001/src/pkg/container/heap/heap.go#newcode9 src/pkg/container/heap/heap.go:9: // This means the minimum element of the entire ...
10 years, 9 months ago (2013-08-02 21:54:10 UTC) #5
peted
Hello gri@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-08-02 21:54:27 UTC) #6
bradfitz
LGTM Will defer to others on docs. https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go#newcode9 src/pkg/container/heap/heap.go:9: // This ...
10 years, 9 months ago (2013-08-05 16:56:29 UTC) #7
rsc
https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go#newcode9 src/pkg/container/heap/heap.go:9: // This means the minimum element in the tree ...
10 years, 9 months ago (2013-08-05 17:33:58 UTC) #8
rsc
Leaving final sign-off for gri.
10 years, 9 months ago (2013-08-05 17:34:06 UTC) #9
peted
Hello gri@golang.org, rsc@golang.org, bradfitz@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-08-05 22:13:50 UTC) #10
peted
Thank you gentlemen. https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/20001/src/pkg/container/heap/heap.go#newcode9 src/pkg/container/heap/heap.go:9: // This means the minimum element ...
10 years, 9 months ago (2013-08-05 22:15:09 UTC) #11
r
LGTM https://codereview.appspot.com/12265043/diff/27001/src/pkg/container/heap/heap.go File src/pkg/container/heap/heap.go (right): https://codereview.appspot.com/12265043/diff/27001/src/pkg/container/heap/heap.go#newcode59 src/pkg/container/heap/heap.go:59: // Same as Remove(h, 0). It is equivalent ...
10 years, 9 months ago (2013-08-05 22:21:40 UTC) #12
peted
Hello gri@golang.org, rsc@golang.org, bradfitz@golang.org, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
10 years, 9 months ago (2013-08-05 22:24:37 UTC) #13
peted
On 2013/08/05 22:21:40, r wrote: > LGTM > > https://codereview.appspot.com/12265043/diff/27001/src/pkg/container/heap/heap.go > File src/pkg/container/heap/heap.go (right): > ...
10 years, 9 months ago (2013-08-05 22:26:30 UTC) #14
gri
If you say hg mail CL it will automatically send another mail. Just hg upload, ...
10 years, 9 months ago (2013-08-05 22:38:22 UTC) #15
peted
On 2013/08/05 22:38:22, gri wrote: > If you say hg mail CL it will automatically ...
10 years, 9 months ago (2013-08-05 22:40:25 UTC) #16
gri
LGTM
10 years, 9 months ago (2013-08-05 22:44:46 UTC) #17
gri
10 years, 9 months ago (2013-08-05 22:45:43 UTC) #18
*** Submitted as https://code.google.com/p/go/source/detail?r=b2b6f8df031e ***

container/heap: add Fix and document the min is element 0.

Fixes issue 5372.
Fixes issue 5577.

R=gri, rsc, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/12265043

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b