Fix wording on deinit.

This commit is contained in:
Nathan Michaels committed 2019-12-21 01:30:55 -05:00
1 parent 33b5dbb82c
commit 45339aec02
1 file changed
+1 -2
+1 -2
View File
@@ -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;
}