We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3eb0ca commit b79e295Copy full SHA for b79e295
bytes/bytes.go
@@ -6,13 +6,13 @@ import (
6
"math"
7
)
8
9
-// Format formats bytes to string. For example, 1024 returns 1 KB
+// Format formats bytes to string. For example, 1000 would returns 1 KB
10
func Format(b uint64) string {
11
return format(float64(b), false)
12
}
13
14
// FormatBin formats bytes to string as specified by ICE standard. For example,
15
-// 13.23 MiB.
+// 1024 would return 1 KiB.
16
func FormatBin(b uint64) string {
17
return format(float64(b), true)
18
0 commit comments