From: Robert Daniel Kortschak Date: Sun, 8 Sep 2013 03:21:03 +0000 (+1000) Subject: sort: fix up example expected output formatting X-Git-Tag: go1.2rc2~315 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c01945afc90e17b214ccbc7d49d477075ec8b463;p=gostls13.git sort: fix up example expected output formatting R=golang-dev, r CC=golang-dev https://golang.org/cl/13426046 --- diff --git a/src/pkg/sort/example_interface_test.go b/src/pkg/sort/example_interface_test.go index c2feafe26c..2b55ebfc53 100644 --- a/src/pkg/sort/example_interface_test.go +++ b/src/pkg/sort/example_interface_test.go @@ -38,6 +38,7 @@ func ExampleInterface() { sort.Sort(ByAge(people)) fmt.Println(people) - // Output: [Bob: 31 John: 42 Michael: 17 Jenny: 26] + // Output: + // [Bob: 31 John: 42 Michael: 17 Jenny: 26] // [Michael: 17 Jenny: 26 Bob: 31 John: 42] } diff --git a/src/pkg/sort/example_multi_test.go b/src/pkg/sort/example_multi_test.go index b2ebc4c610..ac316540fd 100644 --- a/src/pkg/sort/example_multi_test.go +++ b/src/pkg/sort/example_multi_test.go @@ -122,10 +122,10 @@ func Example_sortMultiKeys() { fmt.Println("By language,lines: [{dmr C 100} {glenda Go 200} {gri Go 100} {gri Smalltalk 80} {ken Go 200} {ken C 150} {r C 150} {r Go 100} {rsc Go 200}] - //By language,lines: [{dmr C 100} {glenda Go 200} {gri Go 100} {gri Smalltalk 80} {ken Go 200} {ken C 150} {r C 150} {r Go 100} {rsc Go 200}] + // By language,