Skip to content

Commit 515ba3c

Browse files
committed
Rename Humaner to Humanable
1 parent af64dea commit 515ba3c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

counts/human.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ type Prefix struct {
1010
Multiplier uint64
1111
}
1212

13-
type Humaner interface {
13+
// A quantity that can be made human-readable using Human().
14+
type Humanable interface {
1415
Human([]Prefix, string) (string, string)
1516
ToUint64() uint64
1617
}

sizes/output.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func (s *section) Emit(t *table) {
102102
type item struct {
103103
name string
104104
path *Path
105-
value counts.Humaner
105+
value counts.Humanable
106106
prefixes []counts.Prefix
107107
unit string
108108
scale float64
@@ -111,7 +111,7 @@ type item struct {
111111
func newItem(
112112
name string,
113113
path *Path,
114-
value counts.Humaner,
114+
value counts.Humanable,
115115
prefixes []counts.Prefix,
116116
unit string,
117117
scale float64,

0 commit comments

Comments
 (0)