summaryrefslogtreecommitdiff
path: root/examples/list.rs
diff options
context:
space:
mode:
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];