std.heap.GeneralPurposeAllocator: add doc comment for deinit

This commit is contained in:
Andrew Kelley
2023-02-27 22:04:29 -07:00
parent f33af7af40
commit 5236842a9d

View File

@@ -423,6 +423,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
}
} else struct {};
/// Returns true if there were leaks; false otherwise.
pub fn deinit(self: *Self) bool {
const leaks = if (config.safety) self.detectLeaks() else false;
if (config.retain_metadata) {