Skip to content

Commit 73c21b1

Browse files
vdoblerrobpike
authored andcommitted
sort: use proper mass unit in example
The values for the planet masses are given in earth mass, not solar mass. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/7368054
1 parent 839d47a commit 73c21b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pkg/sort/example_keys_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
)
1111

1212
// A couple of type definitions to make the units clear.
13-
type solarMass float64
13+
type earthMass float64
1414
type au float64
1515

1616
// A Planet defines the properties of a solar system object.
1717
type Planet struct {
1818
name string
19-
mass solarMass
19+
mass earthMass
2020
distance au
2121
}
2222

0 commit comments

Comments
 (0)