File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ impl ForeignOwnable for () {
90
90
///
91
91
/// In the example below, we have multiple exit paths and we want to log regardless of which one is
92
92
/// taken:
93
+ ///
93
94
/// ```
94
95
/// # use kernel::types::ScopeGuard;
95
96
/// fn example1(arg: bool) {
@@ -108,6 +109,7 @@ impl ForeignOwnable for () {
108
109
///
109
110
/// In the example below, we want to log the same message on all early exits but a different one on
110
111
/// the main exit path:
112
+ ///
111
113
/// ```
112
114
/// # use kernel::types::ScopeGuard;
113
115
/// fn example2(arg: bool) {
@@ -129,6 +131,7 @@ impl ForeignOwnable for () {
129
131
///
130
132
/// In the example below, we need a mutable object (the vector) to be accessible within the log
131
133
/// function, so we wrap it in the [`ScopeGuard`]:
134
+ ///
132
135
/// ```
133
136
/// # use kernel::types::ScopeGuard;
134
137
/// fn example3(arg: bool) -> Result {
You can’t perform that action at this time.
0 commit comments