projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff64846
)
rust: docs: add missing newline to printing macro examples
author
Alban Kurti
<kurti@invicto.ai>
Thu, 6 Feb 2025 21:07:52 +0000
(21:07 +0000)
committer
Miguel Ojeda
<ojeda@kernel.org>
Wed, 5 Mar 2025 23:41:08 +0000
(
00:41
+0100)
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>
Documentation/rust/testing.rst
patch
|
blob
|
blame
|
history
diff --git
a/Documentation/rust/testing.rst
b/Documentation/rust/testing.rst
index 568b71b415a4525772cb77ce76c7f9da32fac1c4..180b886e0f1ee997779f04ce85eba858e64946c0 100644
(file)
--- 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>(())
/// ```