| ... | @@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type { | ... | @@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type { |
| 433 | } | 433 | } |
| 434 | } else struct {}; | 434 | } else struct {}; |
| 435 | | 435 | |
| 436 | /// Returns true if there were leaks; false otherwise. | 436 | /// Returns `Check.leak` if there were leaks; `Check.ok` otherwise. |
| 437 | pub fn deinit(self: *Self) Check { | 437 | pub fn deinit(self: *Self) Check { |
| 438 | const leaks = if (config.safety) self.detectLeaks() else false; | 438 | const leaks = if (config.safety) self.detectLeaks() else false; |
| 439 | if (config.retain_metadata) { | 439 | if (config.retain_metadata) { |