Explorar el Código

Fixed godoc

Signed-off-by: Vishal Rana <vr@labstack.com>
Vishal Rana hace 10 años
padre
commit
b79e295443
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      bytes/bytes.go

+ 2 - 2
bytes/bytes.go

@@ -6,13 +6,13 @@ import (
 	"math"
 	"math"
 )
 )
 
 
-// Format formats bytes to string. For example, 1024 returns 1 KB
+// Format formats bytes to string. For example, 1000 would returns 1 KB
 func Format(b uint64) string {
 func Format(b uint64) string {
 	return format(float64(b), false)
 	return format(float64(b), false)
 }
 }
 
 
 // FormatBin formats bytes to string as specified by ICE standard. For example,
 // FormatBin formats bytes to string as specified by ICE standard. For example,
-// 13.23 MiB.
+// 1024 would return 1 KiB.
 func FormatBin(b uint64) string {
 func FormatBin(b uint64) string {
 	return format(float64(b), true)
 	return format(float64(b), true)
 }
 }