diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index b20d64cc05a8f2192cf0d4124c0b585b5f71b4f5..8ef53874b38a4623b39720f165b7f2429517d79a 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -2795,9 +2795,9 @@ bar
         otherwise, <application>psql</application> will exit, returning
         error code 3 to distinguish this case from fatal error
         conditions, which are reported using error code 1.  In either case,
-        any currently running scripts (the toplevel script, if any, and any
+        any currently running scripts (the top-level script, if any, and any
         other scripts which it may have in invoked) will be terminated
-        immediately.  If the toplevel command string contained multiple SQL
+        immediately.  If the top-level command string contained multiple SQL
         commands, processing will stop with the current command.
         </para>
         </listitem>