Commit de227ace14

Philipp Lühmann <spam@philipp.lu>
2023-07-02 20:13:51
std: fix doc comment of GPA deinit
This was missed in #15269
1 parent fc9ab5f
Changed files (1)
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) {