Fix incorrect comment.
authorRobert Haas <rhaas@postgresql.org>
Tue, 1 Mar 2016 18:31:44 +0000 (13:31 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 1 Mar 2016 18:31:44 +0000 (13:31 -0500)
PQmblen and PQdsplen return information about characters, not words.

Kyotaro Horiguchi

src/interfaces/libpq/fe-misc.c

index 9be05a0ddb0aa8c022ae7de5a0a699458e898910..30cee7f053cec281d1c7740fe920f44367851eef 100644 (file)
@@ -1180,7 +1180,7 @@ pqSocketPoll(int sock, int forRead, int forWrite, time_t end_time)
  */
 
 /*
- * returns the byte length of the word beginning s, using the
+ * returns the byte length of the character beginning at s, using the
  * specified encoding.
  */
 int
@@ -1190,7 +1190,7 @@ PQmblen(const char *s, int encoding)
 }
 
 /*
- * returns the display length of the word beginning s, using the
+ * returns the display length of the character beginning at s, using the
  * specified encoding.
  */
 int