From: Volker Dobler Date: Wed, 27 Feb 2013 18:44:50 +0000 (-0800) Subject: sort: use proper mass unit in example X-Git-Tag: go1.1rc2~810 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=73c21b13127c8dfad73d4477aa3dd9785515bf2b;p=gostls13.git 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 --- diff --git a/src/pkg/sort/example_keys_test.go b/src/pkg/sort/example_keys_test.go index 268e4daaf8..a8e47e4926 100644 --- a/src/pkg/sort/example_keys_test.go +++ b/src/pkg/sort/example_keys_test.go @@ -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 }