diff --git a/doc/src/sgml/generic-wal.sgml b/doc/src/sgml/generic-wal.sgml
index 6655f22..b3388ba 100644
--- a/doc/src/sgml/generic-wal.sgml
+++ b/doc/src/sgml/generic-wal.sgml
@@ -43,7 +43,7 @@
- GenericXLogAbort(state)> — finish construction of
+ GenericXLogFinish(state)> — finish construction of
a generic xlog record.
@@ -52,7 +52,7 @@
The xlog record construction can be canceled between any of the above
- steps by calling GenericXLogAbort()>. This will discard all
+ steps by calling GenericXLogAbort(state)>. This will discard all
changes to the page image copies.