aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-02-13 17:18:00 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2025-02-25 16:18:11 +0100
commit7a2e40866cf45a016858c73b9a5699b72be8ce38 (patch)
tree8042ec9c091fe2b6eb3d20feb2dcdb7a6f539b17
parentc48700e86d91004424e3a6496f194decb036dccb (diff)
downloadqemu-7a2e40866cf45a016858c73b9a5699b72be8ce38.zip
qemu-7a2e40866cf45a016858c73b9a5699b72be8ce38.tar.gz
qemu-7a2e40866cf45a016858c73b9a5699b72be8ce38.tar.bz2
docs: rust: fix typos
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--docs/devel/rust.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/devel/rust.rst b/docs/devel/rust.rst
index c75dccd..d68701c 100644
--- a/docs/devel/rust.rst
+++ b/docs/devel/rust.rst
@@ -294,7 +294,7 @@ to a Rust mutable reference, and use a shared reference instead. Rust code
will then have to use QEMU's ``BqlRefCell`` and ``BqlCell`` type, which
enforce that locking rules for the "Big QEMU Lock" are respected. These cell
types are also known to the ``vmstate`` crate, which is able to "look inside"
-them when building an in-memory representation of a ``struct``s layout.
+them when building an in-memory representation of a ``struct``'s layout.
Note that the same is not true of a ``RefCell`` or ``Mutex``.
In the future, similar cell types might also be provided for ``AioContext``-based
@@ -350,7 +350,7 @@ Writing procedural macros
'''''''''''''''''''''''''
By conventions, procedural macros are split in two functions, one
-returning ``Result<proc_macro2::TokenStream, MacroError>` with the body of
+returning ``Result<proc_macro2::TokenStream, MacroError>`` with the body of
the procedural macro, and the second returning ``proc_macro::TokenStream``
which is the actual procedural macro. The former's name is the same as
the latter with the ``_or_error`` suffix. The code for the latter is more