Commit 73c21b13 authored by Volker Dobler's avatar Volker Dobler Committed by Rob Pike

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
parent 839d47ad
......@@ -10,13 +10,13 @@ import (
)
// A couple of type definitions to make the units clear.
type solarMass float64
type earthMass float64
type au float64
// A Planet defines the properties of a solar system object.
type Planet struct {
name string
mass solarMass
mass earthMass
distance au
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment