summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Kurti <kurti@invicto.ai>2025-02-06 21:07:52 +0000
committerMiguel Ojeda <ojeda@kernel.org>2025-03-06 00:41:08 +0100
commitf2e413f00ebec10a8725b1b75b1b523c561bd403 (patch)
tree05303242c258d80c7f53bcc5c8d78380da0caea3
parentff64846bee0e7e3e7bc9363ebad3bab42dd27e24 (diff)
rust: docs: add missing newline to printing macro examples
Fix adding a newline at the end of the usage of pr_info! in the documentation Fixes: e3c3d34507c7 ("docs: rust: Add description of Rust documentation test as KUnit ones") Reported-by: Miguel Ojeda <ojeda@kernel.org> Link: https://github.com/Rust-for-Linux/linux/issues/1139 Signed-off-by: Alban Kurti <kurti@invicto.ai> Reviewed-by: David Gow <davidgow@google.com> Link: https://lore.kernel.org/r/20250206-printing_fix-v3-1-a85273b501ae@invicto.ai [ Replaced Closes with Link since it fixes part of the issue. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
-rw-r--r--Documentation/rust/testing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/rust/testing.rst b/Documentation/rust/testing.rst
index 568b71b415a4..180b886e0f1e 100644
--- a/Documentation/rust/testing.rst
+++ b/Documentation/rust/testing.rst
@@ -97,7 +97,7 @@ operator are also supported as usual, e.g.:
/// ```
/// # use kernel::{spawn_work_item, workqueue};
- /// spawn_work_item!(workqueue::system(), || pr_info!("x"))?;
+ /// spawn_work_item!(workqueue::system(), || pr_info!("x\n"))?;
/// # Ok::<(), Error>(())
/// ```