@@ -161,7 +161,7 @@ allocate_recordbuf(XLogReaderState *state, uint32 reclength)
161161/*
162162 * Attempt to read an XLOG record.
163163 *
164- * If RecPtr isnot NULL , try to read a record at that position. Otherwise
164+ * If RecPtr isvalid , try to read a record at that position. Otherwise
165165 * try to read a record just after the last one previously read.
166166 *
167167 * If the read_page callback fails to read the requested data, NULL is
@@ -901,10 +901,10 @@ ValidXLogPageHeader(XLogReaderState *state, XLogRecPtr recptr,
901901 */
902902
903903/*
904- * Find the first record withat an lsn >= RecPtr.
904+ * Find the first record with an lsn >= RecPtr.
905905 *
906- * Useful for checking whether RecPtr is a valid xlog address for reading and to
907- * find the first valid address after some address when dumping records for
906+ * Useful for checking whether RecPtr is a valid xlog address for reading, and
907+ *to find the first valid address after some address when dumping records for
908908 * debugging purposes.
909909 */
910910XLogRecPtr