summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Collins <dave@davec.name>2015-01-24 17:41:40 -0600
committerDave Collins <dave@davec.name>2015-01-24 17:41:40 -0600
commit5790c156f0a05cbca26a71ddbd704c34a21ceb8c (patch)
treeecf5f0af706676c6334f10a1c2a7f0aa91c87a76
parent991ef33a818a2d081edbde68346e0ae93a48f532 (diff)
downloadgo-xdr-5790c156f0a05cbca26a71ddbd704c34a21ceb8c.tar.xz
Correct a couple of comment issues found by golint.
-rw-r--r--xdr2/encode.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/xdr2/encode.go b/xdr2/encode.go
index 47a3aa1..7bac268 100644
--- a/xdr2/encode.go
+++ b/xdr2/encode.go
@@ -109,7 +109,7 @@ func (enc *Encoder) EncodeInt(v int32) (int, error) {
return n, nil
}
-// EncodeInt writes the XDR encoded representation of the passed 32-bit
+// EncodeUint writes the XDR encoded representation of the passed 32-bit
// unsigned integer to the encapsulated writer and returns the number of bytes
// written.
//
@@ -143,7 +143,6 @@ func (enc *Encoder) EncodeUint(v uint32) (int, error) {
//
// A MarshalError is returned if the enumeration value is not one of the
// provided valid values or if writing the data fails.
-
//
// Reference:
// RFC Section 4.3 - Enumeration
@@ -157,7 +156,7 @@ func (enc *Encoder) EncodeEnum(v int32, validEnums map[int32]bool) (int, error)
return enc.EncodeInt(v)
}
-// EncodeInt writes the XDR encoded representation of the passed boolean to the
+// EncodeBool writes the XDR encoded representation of the passed boolean to the
// encapsulated writer and returns the number of bytes written.
//
// A MarshalError with an error code of ErrIO is returned if writing the data