diff --git a/lib/std/heap/general_purpose_allocator.zig b/lib/std/heap/general_purpose_allocator.zig index 11f7d9dd27..b839807855 100644 --- a/lib/std/heap/general_purpose_allocator.zig +++ b/lib/std/heap/general_purpose_allocator.zig @@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type { } } else struct {}; - /// Returns true if there were leaks; false otherwise. + /// Returns `Check.leak` if there were leaks; `Check.ok` otherwise. pub fn deinit(self: *Self) Check { const leaks = if (config.safety) self.detectLeaks() else false; if (config.retain_metadata) {