Skip to contentSkip to conversation

docs: rust: fix typos

PATCH In review Paolo Bonzini 3 participants 3 messages Feb 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: rust: fix typos

---
 docs/devel/rust.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
docs/devel/rust.rst +2 -2
index 90958e5a306..7964e1fd327 100644
@@ -293,7 +293,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
@@ -349,7 +349,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
Signature · 1 line
2.48.1
#2 lore raw
In reply to Paolo Bonzini

docs/devel/rust.rst Writing procedural macros · line 352

Quoted 9 lines · Paolo Bonzini
---
  docs/devel/rust.rst | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

By conventions, procedural macros are split in two functions, one

docs/devel/rust.rst +1 -1
-returning ``Result<proc_macro2::TokenStream, MacroError>` with the body of
+returning ``Result<proc_macro2::TokenStream, MacroError>`` with the body of

Isn't sphinx supposed to warn for such error?