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:
parent
467122ce0b
commit
c01945afc9
@ -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]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user