File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ pub struct BuilderArenaImplInner<A>
240240where
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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments