summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-04-18 21:50:49 +0200
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-04-18 21:50:49 +0200
commitf35c9419d2d2087e9703256a030b382ef17c6c21 (patch)
tree052de0b4a51fa7bd76896efb4b9857bfe2c3107c /exercises
parent8e2cbf7b5afd9c3c1cc1fcc20c66dc77d683eab4 (diff)
parent656e1ba1e72be76049a89c16842de5cd551aa1d3 (diff)
Merge pull request 'fix: mutex unlock call in async example' (#407) from gabelluardo/ziglings:fix-async91 into main
Reviewed-on: https://codeberg.org/ziglings/exercises/pulls/407
Diffstat (limited to 'exercises')
-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