Skip to content

Commit 68fd23b

Browse files
Apply suggestions from code review
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
1 parent 8a50f1f commit 68fd23b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/system/SystemPacketBuffer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,13 @@ PacketBufferHandle PacketBufferHandle::New(size_t aAvailableSize, uint16_t aRese
510510
{
511511
// Sanity check for kStructureSize to ensure that it matches the PacketBuffer size.
512512
static_assert(PacketBuffer::kStructureSize == sizeof(PacketBuffer), "PacketBuffer size mismatch");
513-
// Setting a static upper bound on kStructureSize to ensure the summation of all the sizes do not overflow.
513+
// Setting a static upper bound on kStructureSize to ensure the summation of all the sizes does not overflow.
514514
static_assert(PacketBuffer::kStructureSize <= UINT16_MAX, "kStructureSize should not exceed UINT16_MAX.");
515-
// Setting a static upper bound on the maximum buffer size allocation for regular sized messages(not large).
515+
// Setting a static upper bound on the maximum buffer size allocation for regular sized messages (not large).
516516
static_assert(PacketBuffer::kMaxSizeWithoutReserve <= UINT16_MAX, "kMaxSizeWithoutReserve should not exceed UINT16_MAX.");
517517

518518
// Ensure that aAvailableSize is bound within a max and is not big enough to cause overflow during
519-
// subsequent addtion of all the sizes.
519+
// subsequent addition of all the sizes.
520520
if (aAvailableSize > UINT32_MAX)
521521
{
522522
ChipLogError(chipSystemLayer,

0 commit comments

Comments
 (0)