From cec35ac08db95e8ab18e9eb997bd2eb59ecdfa0a Mon Sep 17 00:00:00 2001 From: Matthew Saltz Date: Tue, 24 Sep 2024 12:19:06 -0400 Subject: [PATCH] Update capacity comment in lib/std/priority_queue.zig Co-authored-by: Andrew Kelley --- lib/std/priority_queue.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/priority_queue.zig b/lib/std/priority_queue.zig index ad7672cacb81..607a6157ac3f 100644 --- a/lib/std/priority_queue.zig +++ b/lib/std/priority_queue.zig @@ -19,8 +19,7 @@ pub fn PriorityQueue(comptime T: type, comptime Context: type, comptime compareF const Self = @This(); items: []T, - /// The capacity of the queue. This may be read directly, but must not - /// be modified directly. + /// Tracks the allocated slice of memory when combined with `items.ptr`. capacity: usize, context: Context,