Fixing wrong comment on PQmblen and PQdsplen. - Mailing list pgsql-hackers

From Kyotaro HORIGUCHI
Subject Fixing wrong comment on PQmblen and PQdsplen.
Date
Msg-id 20160226.143341.231198019.horiguchi.kyotaro@lab.ntt.co.jp
Whole thread Raw
In response to Re: psql completion for ids in multibyte string  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Responses Re: Fixing wrong comment on PQmblen and PQdsplen.
List pgsql-hackers
Hello,

I divided the last patch into one typo-fix patch and one
improvement patch. This is the former one.

At Fri, 06 Nov 2015 11:47:17 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> wrote in
<20151106.114717.170526268.horiguchi.kyotaro@lab.ntt.co.jp>
> > Just a minor nitpick -
> > 
> > ... character beginning *at* s ...?
> > 
> > If so, there would be one more instance to fix.
> 
> I think so.  I overlooked both of them. And as you mention,
> PQdsplen has the same kind of typo. It returns display length of
> the *character* beginning *at* s, too.

This patch fixes wrong comments of PQmblen() and PQdsplen().  The
comments say that "returns the length of the word beginning s"
but what it actually does is "returns the length of the
*character* beginning at s".

regards,

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [REVIEW] In-core regression tests for replication, cascading, archiving, PITR, etc.
Next
From: Kyotaro HORIGUCHI
Date:
Subject: Re: psql completion for ids in multibyte string