commit 45339aec02124b8ae9480eeb69fd6cd5bd2ee5aa (tree) parent 33b5dbb82c3c68596ce41abcea6aea3834c0d3a7 Author: Nathan Michaels <nathan@nmichaels.org> Date: Sat, 21 Dec 2019 01:30:55 -0500 Fix wording on deinit. Diffstat:
| M | lib/std/mutex.zig | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/std/mutex.zig b/lib/std/mutex.zig @@ -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; }