Skip to content

Commit dfcff49

Browse files
nnethercoteFirestar99
authored andcommitted
Fix debug_printf! docs.
It mixes up `debug_printf!` and `debug_printfln!`.
1 parent 43f217a commit dfcff49

File tree

1 file changed

+3
-3
lines changed
  • crates/spirv-std/macros/src

1 file changed

+3
-3
lines changed

crates/spirv-std/macros/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ pub fn gpu_only(_attr: TokenStream, item: TokenStream) -> TokenStream {
220220
output.into()
221221
}
222222

223-
/// Print a formatted string with a newline using the debug printf extension.
223+
/// Print a formatted string using the debug printf extension.
224224
///
225225
/// Examples:
226226
///
227227
/// ```rust,ignore
228-
/// debug_printfln!("uv: %v2f", uv);
229-
/// debug_printfln!("pos.x: %f, pos.z: %f, int: %i", pos.x, pos.z, int);
228+
/// debug_printf!("uv: %v2f\n", uv);
229+
/// debug_printf!("pos.x: %f, pos.z: %f, int: %i\n", pos.x, pos.z, int);
230230
/// ```
231231
///
232232
/// See <https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/main/docs/debug_printf.md#debug-printf-format-string> for formatting rules.

0 commit comments

Comments
 (0)