1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:00:06 -07:00

sort: fix up example expected output formatting

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/13426046
This commit is contained in:
Robert Daniel Kortschak 2013-09-08 13:21:03 +10:00 committed by Rob Pike
parent 467122ce0b
commit c01945afc9
2 changed files with 7 additions and 6 deletions

View File

@ -38,6 +38,7 @@ func ExampleInterface() {
sort.Sort(ByAge(people)) sort.Sort(ByAge(people))
fmt.Println(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] // [Michael: 17 Jenny: 26 Bob: 31 John: 42]
} }