We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65a6e05 commit 0f1db95Copy full SHA for 0f1db95
src/maps/example_test.go
@@ -167,8 +167,8 @@ func ExampleValues() {
167
10: "Ten",
168
1000: "THOUSAND",
169
}
170
- keys := slices.Sorted(maps.Values(m1))
171
- fmt.Println(keys)
+ values := slices.Sorted(maps.Values(m1))
+ fmt.Println(values)
172
// Output:
173
// [THOUSAND Ten one]
174
src/slices/example_test.go
@@ -310,7 +310,7 @@ func ExampleSortStableFunc() {
310
{"Bob", 24},
311
{"Alice", 55},
312
313
- // Stable sort by name, keeping age ordering of Alices intact
+ // Stable sort by name, keeping age ordering of Alice intact
314
slices.SortStableFunc(people, func(a, b Person) int {
315
return strings.Compare(a.Name, b.Name)
316
})
0 commit comments