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 68bd71a commit 06f98cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 06f98cb

Please sign in to comment.