We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9ab5f commit de227acCopy full SHA for de227ac
lib/std/heap/general_purpose_allocator.zig
@@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
433
}
434
} else struct {};
435
436
- /// Returns true if there were leaks; false otherwise.
+ /// Returns `Check.leak` if there were leaks; `Check.ok` otherwise.
437
pub fn deinit(self: *Self) Check {
438
const leaks = if (config.safety) self.detectLeaks() else false;
439
if (config.retain_metadata) {
0 commit comments