Skip to content

Commit 0562e18

Browse files
committed
fix typos in comments
1 parent 8fae01c commit 0562e18

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

capnp/src/message.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ unsafe impl Allocator for ScratchSpaceHeapAllocator<'_> {
959959
}
960960
}
961961

962-
/// An Allocator whose first and only segment is a backed by a user-provided buffer.
962+
/// An Allocator whose first and only segment is backed by a user-provided buffer.
963963
/// If the segment fills up, subsequent allocations trigger panics.
964964
///
965965
/// The main purpose of this struct is to be used in situations where heap allocation

capnp/src/private/arena.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ pub struct BuilderArenaImplInner<A>
240240
where
241241
A: Allocator,
242242
{
243-
allocator: Option<A>, // None if has already be deallocated.
243+
allocator: Option<A>, // None if has already been deallocated.
244244
segments: BuilderSegmentArray,
245245
}
246246

capnp/src/private/read_limiter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mod sync {
4949
#[inline]
5050
pub fn can_read(&self, amount: usize) -> Result<()> {
5151
// We use separate AtomicUsize::load() and AtomicUsize::store() steps, which may
52-
// result in undercounting reads if multiple threads are reading at the same.
52+
// result in undercounting reads if multiple threads are reading at the same time.
5353
// That's okay -- a denial of service attack will eventually hit the limit anyway.
5454
//
5555
// We could instead do a single fetch_sub() step, but that seems to be slower.

0 commit comments

Comments
 (0)