We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{ .. macro! .. }
1 parent 304351e commit ecdf453Copy full SHA for ecdf453
rust/kernel/std_vendor.rs
@@ -73,8 +73,7 @@
73
/// Naive factorial implementation:
74
///
75
/// ```rust
76
-/// # #[expect(clippy::disallowed_macros)]
77
-/// # {
+/// # #![expect(clippy::disallowed_macros)]
78
/// fn factorial(n: u32) -> u32 {
79
/// if dbg!(n <= 1) {
80
/// dbg!(1)
@@ -84,7 +83,6 @@
84
83
/// }
85
86
/// dbg!(factorial(4));
87
-/// # }
88
/// ```
89
90
/// This prints to the kernel log:
@@ -129,11 +127,9 @@
129
127
/// invocations. You can use a 1-tuple directly if you need one:
130
128
131
132
133
134
/// assert_eq!(1, dbg!(1u32,)); // trailing comma ignored
135
/// assert_eq!((1,), dbg!((1u32,))); // 1-tuple
136
137
138
139
/// [`std::dbg`]: https://doc.rust-lang.org/std/macro.dbg.html
0 commit comments