authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-27 22:04:29-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-02-27 22:04:29-07:00
log5236842a9d0f7b0a82c440bcc08d315db4051d48
treec366d8359a696e903593187c2aa33a5fdffe16d9
parentf33af7af40faccc05f66417f1ba5caa4eb158769

std.heap.GeneralPurposeAllocator: add doc comment for deinit


1 files changed, 1 insertions(+), 0 deletions(-)

lib/std/heap/general_purpose_allocator.zig+1
...@@ -423,6 +423,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {...@@ -423,6 +423,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
423 }423 }
424 } else struct {};424 } else struct {};
425425
426 /// Returns true if there were leaks; false otherwise.
426 pub fn deinit(self: *Self) bool {427 pub fn deinit(self: *Self) bool {
427 const leaks = if (config.safety) self.detectLeaks() else false;428 const leaks = if (config.safety) self.detectLeaks() else false;
428 if (config.retain_metadata) {429 if (config.retain_metadata) {