Skip to content

Commit 24280da

Browse files
authored
Rollup merge of rust-lang#134884 - calciumbe:patch1, r=jieyouxu
Fix typos Hello, I fix some typos in docs and comments. Thank you very much.
2 parents d22d9cd + 211f0aa commit 24280da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alloc/src/raw_vec.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ impl<A: Allocator> RawVecInner<A> {
420420
match Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc, elem_layout) {
421421
Ok(this) => {
422422
unsafe {
423-
// Make it more obvious that a subsquent Vec::reserve(capacity) will not allocate.
423+
// Make it more obvious that a subsequent Vec::reserve(capacity) will not allocate.
424424
hint::assert_unchecked(!this.needs_to_grow(0, capacity, elem_layout));
425425
}
426426
this

std/src/thread/current.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub(crate) fn set_current(thread: Thread) -> Result<(), Thread> {
136136
/// one thread and is guaranteed not to call the global allocator.
137137
#[inline]
138138
pub(crate) fn current_id() -> ThreadId {
139-
// If accessing the persistant thread ID takes multiple TLS accesses, try
139+
// If accessing the persistent thread ID takes multiple TLS accesses, try
140140
// to retrieve it from the current thread handle, which will only take one
141141
// TLS access.
142142
if !id::CHEAP {

0 commit comments

Comments
 (0)