Typo in comment in nbtree.h

Started by Thomas Munroover 9 years ago2 messages
#1Thomas Munro
thomas.munro@enterprisedb.com

Hi

Following along with a btree bug report, I saw a typo "referencd" in a
comment. Also "we've" seems a bit odd here, but maybe it's just me.
Maybe it should be like this?

--- a/src/include/access/nbtree.h
+++ b/src/include/access/nbtree.h
@@ -522,7 +522,7 @@ typedef struct BTScanPosData
        Buffer          buf;                    /* if valid, the
buffer is pinned */
        XLogRecPtr      lsn;                    /* pos in the WAL
stream when page was read */
-       BlockNumber currPage;           /* page we've referencd by
items array */
+       BlockNumber currPage;           /* page referenced by items array */
        BlockNumber nextPage;           /* page's right link when we
scanned it */

/*

--
Thomas Munro
http://www.enterprisedb.com

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#2Kevin Grittner
kgrittn@gmail.com
In reply to: Thomas Munro (#1)
Re: Typo in comment in nbtree.h

On Wed, Jun 1, 2016 at 4:08 PM, Thomas Munro
<thomas.munro@enterprisedb.com> wrote:

Maybe it should be like this?

--- a/src/include/access/nbtree.h
+++ b/src/include/access/nbtree.h
@@ -522,7 +522,7 @@ typedef struct BTScanPosData
Buffer          buf;                    /* if valid, the
buffer is pinned */
XLogRecPtr      lsn;                    /* pos in the WAL
stream when page was read */
-       BlockNumber currPage;           /* page we've referencd by
items array */
+       BlockNumber currPage;           /* page referenced by items array */
BlockNumber nextPage;           /* page's right link when we
scanned it */

/*

I agree. Pushed.

Thanks!

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers