summaryrefslogtreecommitdiff
path: root/examples/list.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-08 12:18:41 -0500
committerMica White <botahamec@outlook.com>2024-03-08 12:18:41 -0500
commit03d0cdb7145042ce51c9eb98bfd081a4f10fe8e1 (patch)
tree0d2b753760194661a5a5a8f2bfd60a822e116c47 /examples/list.rs
parent6b6f207965cc71fa9a7a056a1c89675116abec74 (diff)
Keyable
Diffstat (limited to 'examples/list.rs')
-rw-r--r--examples/list.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/list.rs b/examples/list.rs
index c73b54e..448f70a 100644
--- a/examples/list.rs
+++ b/examples/list.rs
@@ -37,7 +37,7 @@ fn main() {
}
let data = [data[0], data[1], data[2]];
- let mut guard = LockGuard::lock(&data, &mut key);
+ let mut guard = LockGuard::lock(&data, key);
*guard[0] += *guard[1];
*guard[1] += *guard[2];
*guard[2] += *guard[0];