File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl ForeignOwnable for () {
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
- /// # use kernel::ScopeGuard;
94
+ /// # use kernel::types:: ScopeGuard;
95
95
/// fn example1(arg: bool) {
96
96
/// let _log = ScopeGuard::new(|| pr_info!("example1 completed\n"));
97
97
///
@@ -109,7 +109,7 @@ impl ForeignOwnable for () {
109
109
/// In the example below, we want to log the same message on all early exits but a different one on
110
110
/// the main exit path:
111
111
/// ```
112
- /// # use kernel::ScopeGuard;
112
+ /// # use kernel::types:: ScopeGuard;
113
113
/// fn example2(arg: bool) {
114
114
/// let log = ScopeGuard::new(|| pr_info!("example2 returned early\n"));
115
115
///
@@ -130,7 +130,7 @@ impl ForeignOwnable for () {
130
130
/// In the example below, we need a mutable object (the vector) to be accessible within the log
131
131
/// function, so we wrap it in the [`ScopeGuard`]:
132
132
/// ```
133
- /// # use kernel::ScopeGuard;
133
+ /// # use kernel::types:: ScopeGuard;
134
134
/// fn example3(arg: bool) -> Result {
135
135
/// let mut vec =
136
136
/// ScopeGuard::new_with_data(Vec::new(), |v| pr_info!("vec had {} elements\n", v.len()));
You can’t perform that action at this time.
0 commit comments