Codebase list golang-github-vbauerster-mpb / 1c82e53
descriptive param name: verb Vladimir Bauer 8 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3333
3434 type CounterKiB int64
3535
36 func (c CounterKiB) Format(st fmt.State, r rune) {
36 func (c CounterKiB) Format(st fmt.State, verb rune) {
3737 prec, ok := st.Precision()
3838
39 if r == 'd' || !ok {
39 if verb == 'd' || !ok {
4040 prec = 0
4141 }
42 if r == 'f' && !ok {
42 if verb == 'f' && !ok {
4343 prec = 6
4444 }
4545 // retain old beahavior if s verb used
46 if r == 's' {
46 if verb == 's' {
4747 prec = 1
4848 }
4949