File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ type Prefix struct {
10
10
Multiplier uint64
11
11
}
12
12
13
- type Humaner interface {
13
+ // A quantity that can be made human-readable using Human().
14
+ type Humanable interface {
14
15
Human ([]Prefix , string ) (string , string )
15
16
ToUint64 () uint64
16
17
}
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ func (s *section) Emit(t *table) {
102
102
type item struct {
103
103
name string
104
104
path * Path
105
- value counts.Humaner
105
+ value counts.Humanable
106
106
prefixes []counts.Prefix
107
107
unit string
108
108
scale float64
@@ -111,7 +111,7 @@ type item struct {
111
111
func newItem (
112
112
name string ,
113
113
path * Path ,
114
- value counts.Humaner ,
114
+ value counts.Humanable ,
115
115
prefixes []counts.Prefix ,
116
116
unit string ,
117
117
scale float64 ,
You can’t perform that action at this time.
0 commit comments