We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efcbb94 commit dd20225Copy full SHA for dd20225
library/alloc/src/rc.rs
@@ -3536,7 +3536,7 @@ impl<T> Default for Weak<T> {
3536
}
3537
3538
3539
-// NOTE: We checked_add here to deal with mem::forget safely. In particular
+// NOTE: We wrapping_add here to deal with mem::forget safely. In particular
3540
// if you mem::forget Rcs (or Weaks), the ref-count can overflow, and then
3541
// you can free the allocation while outstanding Rcs (or Weaks) exist.
3542
// We abort because this is such a degenerate scenario that we don't care about
0 commit comments