aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2025-07-30 23:15:14 +0100
committergingerBill <gingerBill@users.noreply.github.com>2025-07-30 23:15:14 +0100
commit6a10cfdc304dee49549af638836d8a1b64326958 (patch)
tree12644bd99f3c3318ef9d29a6927ad68e88a21efc /core
parenta2e7a62a2633b253acb4de8249319cc1968f659f (diff)
Fix typo
Diffstat (limited to 'core')
-rw-r--r--core/sync/extended.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/sync/extended.odin b/core/sync/extended.odin
index 199407428..f1d8348ee 100644
--- a/core/sync/extended.odin
+++ b/core/sync/extended.odin
@@ -50,7 +50,7 @@ wait_group_add :: proc "contextless" (wg: ^Wait_Group, delta: int) {
switch counter := atomic_load(&wg.counter); counter {
case counter < 0:
panic_contextless("sync.Wait_Group negative counter")
- case if wg.counter == 0:
+ case wg.counter == 0:
cond_broadcast(&wg.cond)
if atomic_load(&wg.counter) != 0 {
panic_contextless("sync.Wait_Group misuse: sync.wait_group_add called concurrently with sync.wait_group_wait")