goprotobuf: Fix Marshal crash on typed nil.
Also a bunch of other trivial updates.
R=r
CC=golang-dev
http://codereview.appspot.com/6501064
diff --git a/proto/text.go b/proto/text.go
index c31f3ff..18fb493 100644
--- a/proto/text.go
+++ b/proto/text.go
@@ -91,7 +91,7 @@
func (w *textWriter) unindent() {
if w.ind == 0 {
- log.Printf("proto: textWriter unindented too far!")
+ log.Printf("proto: textWriter unindented too far")
return
}
w.ind--
@@ -456,7 +456,7 @@
return buf.String()
}
-// CompactText writes a given protocl buffer in compact text format (one line).
+// CompactText writes a given protocol buffer in compact text format (one line).
func CompactText(w io.Writer, pb Message) { marshalText(w, pb, true) }
// CompactTextString is the same as CompactText, but returns the string directly.