]> Cypherpunks repositories - gostls13.git/commitdiff
math, path: minor comment fixes
authorRobert Griesemer <gri@golang.org>
Fri, 12 Mar 2010 00:40:32 +0000 (16:40 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 12 Mar 2010 00:40:32 +0000 (16:40 -0800)
R=r
CC=golang-dev
https://golang.org/cl/444043

src/pkg/math/ldexp.go
src/pkg/path/path.go

index e8223703b6ae08ce3df8842ecdf3d500d8f96e70..dc6b3a820e1cb4f68fddce85a897a6ad2359c801 100644 (file)
@@ -5,7 +5,7 @@
 package math
 
 // Ldexp is the inverse of Frexp.
-// It returns frac × 2<sup>exp</sup>.
+// 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
index 3ce2166e370887504a68fec9b3688041410cfbb6..71d8b42158731b565dad8da76f61524b09054f5c 100644 (file)
@@ -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 {