Commit c033b47f13 for qemu.org
commit c033b47f13fd00c18242ab7a2bcf8f56279ed1e6
Author: J. Neuschäfer <j.neuschaefer@9elements.com>
Date: Wed May 20 13:15:20 2026 +0200
docs/devel/qom: Fix some editing errors
"devices have an two additional [...]" -> "devices have two additional",
and also a case of "were" vs. "where".
Signed-off-by: J. Neuschäfer <j.neuschaefer@9elements.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260520-qom-v1-1-baad87fefe4f@9elements.com
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index 5870745ba2..935bb1004a 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -435,14 +435,14 @@ OBJECT_DEFINE_ABSTRACT_TYPE() macro can be used instead:
Device Life-cycle
=================
-As class initialisation cannot fail devices have an two additional
+As class initialisation cannot fail, devices have two additional
methods to handle the creation of dynamic devices. The ``realize``
function is called with ``Error **`` pointer which should be set if
the device cannot complete its setup. Otherwise on successful
completion of the ``realize`` method the device object is added to the
QOM tree and made visible to the guest.
-The reverse function is ``unrealize`` and should be were clean-up
+The reverse function is ``unrealize`` and should be where clean-up
code lives to tidy up after the system is done with the device.
All devices can be instantiated by C code, however only some can