summaryrefslogtreecommitdiff
path: root/exercises/091_async7.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/091_async7.zig')
-rw-r--r--exercises/091_async7.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/091_async7.zig b/exercises/091_async7.zig
index bfe6ffd..1b83795 100644
--- a/exercises/091_async7.zig
+++ b/exercises/091_async7.zig
@@ -6,7 +6,7 @@
//
// // In a task:
// try mutex.lock(io); // blocks until lock is acquired
-// defer mutex.unlock();
+// defer mutex.unlock(io);
// // ... critical section: safe to modify shared data ...
//
// Without the mutex, concurrent tasks could read and write the