summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriele Belluardo <gabriele.belluardo@outlook.it>2026-04-18 11:55:49 +0200
committerGabriele Belluardo <gabriele.belluardo@outlook.it>2026-04-18 11:55:49 +0200
commit656e1ba1e72be76049a89c16842de5cd551aa1d3 (patch)
tree052de0b4a51fa7bd76896efb4b9857bfe2c3107c
parent8e2cbf7b5afd9c3c1cc1fcc20c66dc77d683eab4 (diff)
fix: mutex unlock call in async example
-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