Skip to content

Commit dce4a12

Browse files
committed
Humaner: name some return values for documentation's sake
1 parent 96b7447 commit dce4a12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

counts/human.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (h *Humaner) Name() string {
6060
// FormatNumber formats n, aligned, in `len(unit) + 10` or fewer
6161
// characters (except for extremely large numbers). It returns strings
6262
// representing the numeral and the unit string.
63-
func (h *Humaner) FormatNumber(n uint64, unit string) (string, string) {
63+
func (h *Humaner) FormatNumber(n uint64, unit string) (numeral string, unitString string) {
6464
prefix := h.prefixes[0]
6565

6666
wholePart := n
@@ -95,7 +95,7 @@ func (h *Humaner) FormatNumber(n uint64, unit string) (string, string) {
9595
// Format formats values, aligned, in `len(unit) + 10` or fewer
9696
// characters (except for extremely large numbers). It returns strings
9797
// representing the numeral and the unit string.
98-
func (h *Humaner) Format(value Humanable, unit string) (string, string) {
98+
func (h *Humaner) Format(value Humanable, unit string) (numeral string, unitString string) {
9999
n, overflow := value.ToUint64()
100100
if overflow {
101101
return "∞", unit

0 commit comments

Comments
 (0)