Skip to content

Commit de227ac

Browse files
Philipp Lühmannandrewrk
Philipp Lühmann
authored andcommitted
std: fix doc comment of GPA deinit
This was missed in #15269
1 parent fc9ab5f commit de227ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/heap/general_purpose_allocator.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ pub fn GeneralPurposeAllocator(comptime config: Config) type {
433433
}
434434
} else struct {};
435435

436-
/// Returns true if there were leaks; false otherwise.
436+
/// Returns `Check.leak` if there were leaks; `Check.ok` otherwise.
437437
pub fn deinit(self: *Self) Check {
438438
const leaks = if (config.safety) self.detectLeaks() else false;
439439
if (config.retain_metadata) {

0 commit comments

Comments
 (0)