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 <[email protected]> Link: #1139 Signed-off-by: Alban Kurti <[email protected]> Reviewed-by: David Gow <[email protected]> Link: https://lore.kernel.org/r/[email protected] [ Replaced Closes with Link since it fixes part of the issue. - Miguel ] Signed-off-by: Miguel Ojeda <[email protected]>
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)