mirror of
https://github.com/golang/go
synced 2024-11-23 13:30:08 -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]
|
||||||
}
|
}
|
||||||
|
@ -122,10 +122,10 @@ func Example_sortMultiKeys() {
|
|||||||
fmt.Println("By language,<lines,user:", changes)
|
fmt.Println("By language,<lines,user:", changes)
|
||||||
|
|
||||||
// Output:
|
// Output:
|
||||||
//By user: [{dmr C 100} {glenda Go 200} {gri Smalltalk 80} {gri Go 100} {ken Go 200} {ken C 150} {r Go 100} {r C 150} {rsc Go 200}]
|
// By user: [{dmr C 100} {glenda Go 200} {gri Smalltalk 80} {gri Go 100} {ken Go 200} {ken C 150} {r Go 100} {r C 150} {rsc Go 200}]
|
||||||
//By user,<lines: [{dmr C 100} {glenda Go 200} {gri Smalltalk 80} {gri Go 100} {ken C 150} {ken Go 200} {r Go 100} {r C 150} {rsc Go 200}]
|
// By user,<lines: [{dmr C 100} {glenda Go 200} {gri Smalltalk 80} {gri Go 100} {ken C 150} {ken Go 200} {r Go 100} {r C 150} {rsc Go 200}]
|
||||||
//By user,>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 user,>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} {ken C 150} {r C 150} {gri Go 100} {r Go 100} {ken Go 200} {glenda Go 200} {rsc Go 200} {gri Smalltalk 80}]
|
// By language,<lines: [{dmr C 100} {ken C 150} {r C 150} {gri Go 100} {r Go 100} {ken Go 200} {glenda Go 200} {rsc Go 200} {gri Smalltalk 80}]
|
||||||
//By language,<lines,user: [{dmr C 100} {ken C 150} {r C 150} {gri Go 100} {r Go 100} {glenda Go 200} {ken Go 200} {rsc Go 200} {gri Smalltalk 80}]
|
// By language,<lines,user: [{dmr C 100} {ken C 150} {r C 150} {gri Go 100} {r Go 100} {glenda Go 200} {ken Go 200} {rsc Go 200} {gri Smalltalk 80}]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user