2
0

MessageReader uses ReadCString and ReadString names

Make consistent with MessageWriter
This commit is contained in:
Jack Christensen
2013-07-20 08:40:37 -05:00
parent ce2d53c4fb
commit 0c3753e507
5 changed files with 27 additions and 27 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ func Example_customValueTranscoder() {
}
func decodePointFromText(mr *pgx.MessageReader, size int32) interface{} {
s := mr.ReadByteString(size)
s := mr.ReadString(size)
match := pointRegexp.FindStringSubmatch(s)
if match == nil {
panic(fmt.Sprintf("Received invalid point: %v", s))