diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index efe20e9654..2dec27b0b1 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -7769,7 +7769,6 @@ machines and the host. :since:`Since 1.2.10, QEMU and KVM only`
the number of interrupt vectors. The ``ioeventd`` attribute enables/disables
(values "on"/"off", respectively) ioeventfd.
-:anchor:``
Memory devices
~~~~~~~~~~~~~~
diff --git a/docs/kbase/memorydevices.rst b/docs/kbase/memorydevices.rst
index 7f58a4247b..505b3b3828 100644
--- a/docs/kbase/memorydevices.rst
+++ b/docs/kbase/memorydevices.rst
@@ -79,7 +79,7 @@ Furthermore, DIMMs can have ```` element which configures backend for
devices. For NVDIMMs the element is mandatory and reflects where the content
is saved.
-See `memory devices documentation <../formatdomain.html#elementsMemory>`_.
+See `memory devices documentation <../formatdomain.html#memory-devices>`_.
``virtio-mem`` model
====================