]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/binary: improve comment formatting consistency
authorDmitri Shuralyov <shurcooL@gmail.com>
Tue, 27 Jun 2017 05:18:30 +0000 (01:18 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 27 Jun 2017 05:29:45 +0000 (05:29 +0000)
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>
src/encoding/binary/varint.go

index d7a75f99b1680785b1ecc4b73aca5f9584902fb8..bcb8ac9a459c5c20ceefe3e9ad9f69e5177b9c83 100644 (file)
@@ -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