From: Robert Griesemer Date: Fri, 12 Mar 2010 00:40:32 +0000 (-0800) Subject: math, path: minor comment fixes X-Git-Tag: weekly.2010-03-15~10 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8107cad45a949eea459225da7c342ea8cc3ac330;p=gostls13.git math, path: minor comment fixes R=r CC=golang-dev https://golang.org/cl/444043 --- diff --git a/src/pkg/math/ldexp.go b/src/pkg/math/ldexp.go index e8223703b6..dc6b3a820e 100644 --- a/src/pkg/math/ldexp.go +++ b/src/pkg/math/ldexp.go @@ -5,7 +5,7 @@ package math // Ldexp is the inverse of Frexp. -// It returns frac × 2exp. +// It returns frac × 2^exp. func Ldexp(frac float64, exp int) float64 { // TODO(rsc): Remove manual inlining of IsNaN, IsInf // when compiler does it for us diff --git a/src/pkg/path/path.go b/src/pkg/path/path.go index 3ce2166e37..71d8b42158 100644 --- a/src/pkg/path/path.go +++ b/src/pkg/path/path.go @@ -115,7 +115,7 @@ func Split(path string) (dir, file string) { return "", path } -// Join joins any number of path elemets into a single path, adding a +// Join joins any number of path elements into a single path, adding a // separating slash if necessary. All empty strings are ignored. func Join(elem ...string) string { for i, e := range elem {