aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/binary
diff options
context:
space:
mode:
authorDmitri Shuralyov <shurcooL@gmail.com>2017-06-27 01:18:30 -0400
committerBrad Fitzpatrick <bradfitz@golang.org>2017-06-27 05:29:45 +0000
commit7f93232a1088ee7984bb2891075ec2eabb177f84 (patch)
treeee2890d44c127fe5e08e13a0eb0a7f77bcdd56f1 /src/encoding/binary
parent441fd1338633c2aafa5b30121142ab24ee9dddcb (diff)
downloadgo-7f93232a1088ee7984bb2891075ec2eabb177f84.tar.gz
go-7f93232a1088ee7984bb2891075ec2eabb177f84.zip
encoding/binary: improve comment formatting consistency
Use 2 slashes, space, then tab. This is more consistent, and removes inadvertent leading space. Change-Id: I383770ed4eb8ac17c78c7ae5675b553d4fb70b1e Reviewed-on: https://go-review.googlesource.com/46726 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding/binary')
-rw-r--r--src/encoding/binary/varint.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/encoding/binary/varint.go b/src/encoding/binary/varint.go
index d7a75f99b1..bcb8ac9a45 100644
--- a/src/encoding/binary/varint.go
+++ b/src/encoding/binary/varint.go
@@ -53,9 +53,9 @@ func PutUvarint(buf []byte, x uint64) int {
// number of bytes read (> 0). If an error occurred, the value is 0
// and the number of bytes n is <= 0 meaning:
//
-// n == 0: buf too small
-// n < 0: value larger than 64 bits (overflow)
-// and -n is the number of bytes read
+// n == 0: buf too small
+// n < 0: value larger than 64 bits (overflow)
+// and -n is the number of bytes read
//
func Uvarint(buf []byte) (uint64, int) {
var x uint64
@@ -87,9 +87,9 @@ func PutVarint(buf []byte, x int64) int {
// number of bytes read (> 0). If an error occurred, the value is 0
// and the number of bytes n is <= 0 with the following meaning:
//
-// n == 0: buf too small
-// n < 0: value larger than 64 bits (overflow)
-// and -n is the number of bytes read
+// n == 0: buf too small
+// n < 0: value larger than 64 bits (overflow)
+// and -n is the number of bytes read
//
func Varint(buf []byte) (int64, int) {
ux, n := Uvarint(buf) // ok to continue in presence of error