diff --git a/doc/src/sgml/ref/pg_receivewal.sgml b/doc/src/sgml/ref/pg_receivewal.sgml
index cd4f49177911c3b9083adf541ebf5eb63df1758c..d2cd2d63330e4925aa0fc59ee14911d65ef834fd 100644
--- a/doc/src/sgml/ref/pg_receivewal.sgml
+++ b/doc/src/sgml/ref/pg_receivewal.sgml
@@ -54,11 +54,11 @@ PostgreSQL documentation
    The option <option>--synchronous</> must be specified to flush WAL data
    in real time. Since <application>pg_receivewal</application> does not
    apply WAL, you should not allow it to become a synchronous standby when
-   <xref linkend="guc-synchronous-commit"/> equals
+   <xref linkend="guc-synchronous-commit"> equals
    <literal>remote_apply</literal>. If it does, it will appear to be a
    standby that never catches up, and will cause transaction commits to
    block. To avoid this, you should either configure an appropriate value
-   for <xref linkend="guc-synchronous-standby-names"/>, or specify
+   for <xref linkend="guc-synchronous-standby-names">, or specify
    <varname>application_name</varname> for
    <application>pg_receivewal</application> that does not match it, or
    change the value of <varname>synchronous_commit</varname> to