Commit f2e413f0 authored by Alban Kurti's avatar Alban Kurti Committed by Miguel Ojeda
Browse files

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: e3c3d345 ("docs: rust: Add description of Rust documentation test as KUnit ones")
Reported-by: default avatarMiguel Ojeda <ojeda@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1139


Signed-off-by: default avatarAlban Kurti <kurti@invicto.ai>
Reviewed-by: default avatarDavid 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: default avatarMiguel Ojeda <ojeda@kernel.org>
parent ff64846b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>(())
	/// ```