| ... | @@ -49,8 +49,7 @@ pub const Mutex = if (builtin.single_threaded) | ... | @@ -49,8 +49,7 @@ pub const Mutex = if (builtin.single_threaded) |
| 49 | } | 49 | } |
| 50 | | 50 | |
| 51 | /// Free a mutex created with init. Calling this while the | 51 | /// Free a mutex created with init. Calling this while the |
| 52 | /// mutex is held may result in safety-checked undefined | 52 | /// mutex is held is illegal behavior. |
| 53 | /// behavior. | | |
| 54 | pub fn deinit(self: *Mutex) void { | 53 | pub fn deinit(self: *Mutex) void { |
| 55 | self.* = undefined; | 54 | self.* = undefined; |
| 56 | } | 55 | } |