summaryrefslogtreecommitdiff
path: root/rust/kernel/sync/lock/spinlock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/kernel/sync/lock/spinlock.rs')
-rw-r--r--rust/kernel/sync/lock/spinlock.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/rust/kernel/sync/lock/spinlock.rs b/rust/kernel/sync/lock/spinlock.rs
index 979b56464a4e..91eb2c9e9123 100644
--- a/rust/kernel/sync/lock/spinlock.rs
+++ b/rust/kernel/sync/lock/spinlock.rs
@@ -61,6 +61,7 @@ macro_rules! new_spinlock {
/// assert_eq!(e.c, 10);
/// assert_eq!(e.d.lock().a, 20);
/// assert_eq!(e.d.lock().b, 30);
+/// # Ok::<(), Error>(())
/// ```
///
/// The following example shows how to use interior mutability to modify the contents of a struct