diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml
index 2f4a5904e10..e3f833d231f 100644
--- a/doc/src/sgml/func.sgml
+++ b/doc/src/sgml/func.sgml
@@ -24403,11 +24403,11 @@ SELECT collation for ('foo' COLLATE "de_DE");
pg_wal_lsn_diff
- pg_wal_lsn_diff ( lsn pg_lsn, lsn pg_lsn )
+ pg_wal_lsn_diff ( lsn1 pg_lsn, lsn2 pg_lsn )
numeric
- Calculates the difference in bytes between two write-ahead log
+ Calculates the difference in bytes (lsn1 - lsn2) between two write-ahead log
locations. This can be used
with pg_stat_replication or some of the
functions shown in to