Skip to content

Commit f2e413f

Browse files
albankurtiojeda
authored andcommitted
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: e3c3d34 ("docs: rust: Add description of Rust documentation test as KUnit ones") Reported-by: Miguel Ojeda <ojeda@kernel.org> Link: Rust-for-Linux#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>
1 parent ff64846 commit f2e413f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/rust/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ operator are also supported as usual, e.g.:
9797
9898
/// ```
9999
/// # use kernel::{spawn_work_item, workqueue};
100-
/// spawn_work_item!(workqueue::system(), || pr_info!("x"))?;
100+
/// spawn_work_item!(workqueue::system(), || pr_info!("x\n"))?;
101101
/// # Ok::<(), Error>(())
102102
/// ```
103103

0 commit comments

Comments
 (0)