aboutsummaryrefslogtreecommitdiff
path: root/bytesconv.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-13 18:03:02 +0200
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-01-13 18:03:02 +0200
commit37ad7e0e32bc022478be2bef56badd7d3aa3ff3d (patch)
tree962cb4604578af9de599ebbb1641712cffa7629f /bytesconv.go
parentAdded ability to limit the maximum connection duration in HostClient (diff)
downloadfasthttp-37ad7e0e32bc022478be2bef56badd7d3aa3ff3d.tar.gz
fasthttp-37ad7e0e32bc022478be2bef56badd7d3aa3ff3d.tar.bz2
fasthttp-37ad7e0e32bc022478be2bef56badd7d3aa3ff3d.zip
typo fix
Diffstat (limited to 'bytesconv.go')
-rw-r--r--bytesconv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bytesconv.go b/bytesconv.go
index 3db9cdb..1ccf70e 100644
--- a/bytesconv.go
+++ b/bytesconv.go
@@ -107,7 +107,7 @@ func AppendUint(dst []byte, n int) []byte {
func ParseUint(buf []byte) (int, error) {
v, n, err := parseUintBuf(buf)
if n != len(buf) {
- return -1, fmt.Errorf("only %b bytes out of %d bytes exhausted when parsing int %q", n, len(buf), buf)
+ return -1, fmt.Errorf("only %d bytes out of %d bytes exhausted when parsing int %q", n, len(buf), buf)
}
return v, err
}