diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 0b91d45d804..da79d7a90ea 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -636,7 +636,7 @@ $ psql postgresql://dbmaster:5433/mydb?sslmode=require
- If at least one of standard input or standard output are a
+ If both standard input and standard output are a
terminal, then psql sets the client
encoding to auto
, which will detect the
appropriate client encoding from the locale settings