diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 1b9a72829d5..ee16b1b3e5f 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -1994,7 +1994,7 @@ bar
The filename that will be used to store the history list. The default
value is ~/.psql_history. For example, using:
-\set HISTFILE ~/.psql_history-:DBNAME
+\set HISTFILE ~/.psql_history- :DBNAME
in ~/.psqlrc will get psql to
maintain a separate history for each database.