Skip to content

Commit

Permalink
Update capacity comment in lib/std/priority_queue.zig
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
  • Loading branch information
saltzm and andrewrk committed Sep 24, 2024
1 parent 621be32 commit cec35ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/std/priority_queue.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit cec35ac

Please sign in to comment.