rust: macros: fix documentation of the paste! macro
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 19 Oct 2024 07:22:08 +0000 (09:22 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 21 Oct 2024 18:35:53 +0000 (20:35 +0200)
commit15541c9263ce34ff95a06bc68f45d9bc5c990bcd
tree47751a91ccfb5984bf1bd74f791fcc30abfc01e0
parent8b55dc8610acf816a66373be53ca6e3bbe2d313a
rust: macros: fix documentation of the paste! macro

One of the example in this section uses a curious mix of the constant
and function declaration syntaxes; fix it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Fixes: 823d4737d4c2 ("rust: macros: add `paste!` proc macro")
Link: https://lore.kernel.org/r/20241019072208.1016707-1-pbonzini@redhat.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/macros/lib.rs