mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Fix wording on deinit.
This commit is contained in:
1 parent
33b5dbb82c
commit
45339aec02
1 file changed
+1
-2
+1
-2
@@ -49,8 +49,7 @@ pub const Mutex = if (builtin.single_threaded)
|
||||
}
|
||||
|
||||
/// Free a mutex created with init. Calling this while the
|
||||
/// mutex is held may result in safety-checked undefined
|
||||
/// behavior.
|
||||
/// mutex is held is illegal behavior.
|
||||
pub fn deinit(self: *Mutex) void {
|
||||
self.* = undefined;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user