Skip to content

Commit

Permalink
fix: typos
Browse files Browse the repository at this point in the history
Signed-off-by: calciumbe <192480234+calciumbe@users.noreply.github.com>
  • Loading branch information
calciumbe authored and gitbot committed Feb 20, 2025
1 parent 09ca9e3 commit b4d8b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alloc/src/raw_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ impl<A: Allocator> RawVecInner<A> {
match Self::try_allocate_in(capacity, AllocInit::Uninitialized, alloc, elem_layout) {
Ok(this) => {
unsafe {
// Make it more obvious that a subsquent Vec::reserve(capacity) will not allocate.
// Make it more obvious that a subsequent Vec::reserve(capacity) will not allocate.
hint::assert_unchecked(!this.needs_to_grow(0, capacity, elem_layout));
}
this
Expand Down
2 changes: 1 addition & 1 deletion std/src/thread/current.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub(crate) fn set_current(thread: Thread) -> Result<(), Thread> {
/// one thread and is guaranteed not to call the global allocator.
#[inline]
pub(crate) fn current_id() -> ThreadId {
// If accessing the persistant thread ID takes multiple TLS accesses, try
// If accessing the persistent thread ID takes multiple TLS accesses, try
// to retrieve it from the current thread handle, which will only take one
// TLS access.
if !id::CHEAP {
Expand Down

0 comments on commit b4d8b19

Please sign in to comment.