Skip to content

Commit

Permalink
Fix typo in assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
zachs18 committed May 19, 2024
1 parent 58f8ed1 commit 3299823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2472,7 +2472,7 @@ unsafe impl<#[may_dangle] T: ?Sized, A: Allocator> Drop for Arc<T, A> {
// used by Default::default.
debug_assert!(
!ptr::addr_eq(self.ptr.as_ptr(), &STATIC_INNER_SLICE.inner),
"Arcs backed by a static should never be reach a strong count of 0. \
"Arcs backed by a static should never reach a strong count of 0. \
Likely decrement_strong_count or from_raw were called too many times.",
);

Expand Down

0 comments on commit 3299823

Please sign in to comment.