]> Cypherpunks repositories - gostls13.git/commitdiff
encoding/binary: slightly better documentation
authorRobert Griesemer <gri@golang.org>
Wed, 1 Oct 2014 23:09:55 +0000 (16:09 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 1 Oct 2014 23:09:55 +0000 (16:09 -0700)
Fixes #7306.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/153820044

src/encoding/binary/binary.go

index a5694876ac46eff5f80679c725cf3fd0699afaeb..b5a377430f84bdd2e9eb2d659806e95a28f133f8 100644 (file)
 // type (int8, uint8, int16, float32, complex64, ...)
 // or an array or struct containing only fixed-size values.
 //
-// Varints are a method of encoding integers using one or more bytes;
-// numbers with smaller absolute value take a smaller number of bytes.
-// For a specification, see http://code.google.com/apis/protocolbuffers/docs/encoding.html.
+// The varint functions encode and decode single integer values using
+// a variable-length encoding; smaller values require fewer bytes.
+// For a specification, see
+// http://code.google.com/apis/protocolbuffers/docs/encoding.html.
 //
 // This package favors simplicity over efficiency. Clients that require
 // high-performance serialization, especially for large data structures,