diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml
index cbb333fb3ca..8f5332ab520 100644
--- a/doc/src/sgml/catalogs.sgml
+++ b/doc/src/sgml/catalogs.sgml
@@ -8496,7 +8496,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
boolean
true if the prepared statement was created
- via the PREPARE SQL statement;
+ via the PREPARE SQL command;
false if the statement was prepared via the
frontend/backend protocol
diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c
index 0b8c62f6ce2..a8a987aa92d 100644
--- a/src/interfaces/libpq/fe-protocol3.c
+++ b/src/interfaces/libpq/fe-protocol3.c
@@ -163,7 +163,7 @@ pqParseInput3(PGconn *conn)
/*
* Unexpected message in IDLE state; need to recover somehow.
- * ERROR messages are displayed using the notice processor;
+ * ERROR messages are handled using the notice processor;
* ParameterStatus is handled normally; anything else is just
* dropped on the floor after displaying a suitable warning
* notice. (An ERROR is very possibly the backend telling us why