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 {
423423 }
424424 } else struct {};
425425
426 /// Returns true if there were leaks; false otherwise.
426427 pub fn deinit(self: *Self) bool {
427428 const leaks = if (config.safety) self.detectLeaks() else false;
428429 if (config.retain_metadata) {