diff options
author | Andrew Gerrand <adg@golang.org> | 2012-02-16 09:44:01 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2012-02-16 09:44:01 +1100 |
commit | f012018f629376d307dda832c880943589463b2b (patch) | |
tree | 7ca4979c56a289fbd43a247abce8d875cb5b6079 /src/pkg/container | |
parent | 7eaf23fb7ff94e579375dee5dfd5c0293bb0da26 (diff) | |
download | go-f012018f629376d307dda832c880943589463b2b.tar.gz |
godoc: support for package examples, display example suffixes
Fixes issue 2896.
R=golang-dev, gri
CC=golang-dev
http://codereview.appspot.com/5677047
Diffstat (limited to 'src/pkg/container')
-rw-r--r-- | src/pkg/container/heap/example_test.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pkg/container/heap/example_test.go b/src/pkg/container/heap/example_test.go index c3b8d94cb..861d9620d 100644 --- a/src/pkg/container/heap/example_test.go +++ b/src/pkg/container/heap/example_test.go @@ -58,10 +58,7 @@ func (pq *PriorityQueue) Pop() interface{} { } // 99:seven 88:five 77:zero 66:nine 55:three 44:two 33:six 22:one 11:four 00:eight -func ExampleInterface() { - // The full code of this example, including the methods that implement - // heap.Interface, is in the file src/pkg/container/heap/example_test.go. - +func Example() { const nItem = 10 // Random priorities for the items (a permutation of 0..9, times 11)). priorities := [nItem]int{ |