Skip to content

Commit ea803da

Browse files
jedisct1luehmann
authored andcommitted
Update bounded_array.zig
Co-authored-by: Philipp Lühmann <[email protected]>
1 parent b1d1b04 commit ea803da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/bounded_array.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn BoundedArrayAligned(
4343

4444
buffer: [buffer_capacity]T align(alignment) = undefined,
4545

46-
/// The active array length. Not that in order to save space, this is not
46+
/// The active array length. Note that in order to save space, this is not
4747
/// a `usize`, but rather the smallest integer type that can hold the
4848
/// maximum capacity. In order to get the length as a `usize`, use `len()`.
4949
active_len: Len = 0,
@@ -405,7 +405,7 @@ test "BoundedArray sizeOf" {
405405

406406
try testing.expectEqual(@sizeOf(BoundedArray(u8, 3)), 4);
407407

408-
// `len` is the minimum required size to hold the maximum capacity
408+
// `active_len` is the minimum required size to hold the maximum capacity
409409
try testing.expectEqual(@TypeOf(@as(BoundedArray(u8, 15), undefined).active_len), u4);
410410
try testing.expectEqual(@TypeOf(@as(BoundedArray(u8, 16), undefined).active_len), u5);
411411
}

0 commit comments

Comments
 (0)