From: Rob Pike Date: Thu, 12 Nov 2009 03:39:57 +0000 (-0800) Subject: fix typo in ByteSize example X-Git-Tag: weekly.2009-11-12~10 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0c83f23d44bd1679d5facb2428196551c0c2f7f6;p=gostls13.git fix typo in ByteSize example R=rsc, agl1 CC=golang-dev https://golang.org/cl/154076 --- diff --git a/doc/effective_go.html b/doc/effective_go.html index c4a573a54b..2d6403d0de 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1356,17 +1356,17 @@ automatically for printing, even as part of a general type.
 func (b ByteSize) String() string {
 	switch {
-	case s >= YB:
+	case b >= YB:
 		return fmt.Sprintf("%.2fYB", b/YB)
-	case s >= PB:
+	case b >= PB:
 		return fmt.Sprintf("%.2fPB", b/PB)
-	case s >= TB:
+	case b >= TB:
 		return fmt.Sprintf("%.2fTB", b/TB)
-	case s >= GB:
+	case b >= GB:
 		return fmt.Sprintf("%.2fGB", b/GB)
-	case s >= MB:
+	case b >= MB:
 		return fmt.Sprintf("%.2fMB", b/MB)
-	case s >= KB:
+	case b >= KB:
 		return fmt.Sprintf("%.2fKB", b/KB)
 	}
 	return fmt.Sprintf("%.2fB", b)