diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:30:35 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-06-11 22:38:48 -0600 |
commit | 6fc5d416a289235dd4bb56d29fb96c5a003ea89f (patch) | |
tree | e35bb16c46c2ad8d8563b42e12a1e95cbd936dc7 /pkg/util/ref.go | |
parent | f1a212cddb8dc051c510327c365da42e30b23ab9 (diff) |
use %v when possible
Exceptions are
- the occasional %x when the type is a basic int
- %w
- %q
- %T
- whenever print_tree.go needs to be dumb for compatibility with C
Diffstat (limited to 'pkg/util/ref.go')
-rw-r--r-- | pkg/util/ref.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/util/ref.go b/pkg/util/ref.go index 57f2eac..aecfb9f 100644 --- a/pkg/util/ref.go +++ b/pkg/util/ref.go @@ -36,7 +36,7 @@ func (r *Ref[A, T]) Read() error { return err } if n != size { - return fmt.Errorf("util.Ref[%T].Read: left over data: read %d bytes but only consumed %d", + return fmt.Errorf("util.Ref[%T].Read: left over data: read %v bytes but only consumed %v", r.Data, size, n) } return nil |