commit d9e46dceeca3f66b87e6b2e36415417495d2d2a0 (tree)
parent 0aef1faa820e29a9eceb51a2048977d7be938f2a
Author: johnLate <inbox-121@johnlate.scnr.net>
Date: Mon, 22 Feb 2021 19:29:00 +0100
std.Thread.Semaphore: Fix wrong variable name
Fixes ziglang#8052
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Thread/Semaphore.zig b/lib/std/Thread/Semaphore.zig
@@ -13,7 +13,7 @@ cond: Condition = .{},
//! It is OK to initialize this field to any value.
permits: usize = 0,
-const RwLock = @This();
+const Semaphore = @This();
const std = @import("../std.zig");
const Mutex = std.Thread.Mutex;
const Condition = std.Thread.Condition;