Skip to content

Commit be902e8

Browse files
authored
Rollup merge of #102188 - flba-eb:doc_missed_at_rename, r=jyn514
Update doc after renaming `fn is_zero` `fn is_zero` has been renamed to `fn count_is_zero` in 1b1bf24. This patch updates the documentation accordingly.
2 parents 0cd345c + 8eeeac6 commit be902e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/panicking.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub mod panic_count {
300300
thread_local! { static LOCAL_PANIC_COUNT: Cell<usize> = const { Cell::new(0) } }
301301

302302
// Sum of panic counts from all threads. The purpose of this is to have
303-
// a fast path in `is_zero` (which is used by `panicking`). In any particular
303+
// a fast path in `count_is_zero` (which is used by `panicking`). In any particular
304304
// thread, if that thread currently views `GLOBAL_PANIC_COUNT` as being zero,
305305
// then `LOCAL_PANIC_COUNT` in that thread is zero. This invariant holds before
306306
// and after increase and decrease, but not necessarily during their execution.
@@ -369,7 +369,7 @@ pub mod panic_count {
369369
}
370370

371371
// Slow path is in a separate function to reduce the amount of code
372-
// inlined from `is_zero`.
372+
// inlined from `count_is_zero`.
373373
#[inline(never)]
374374
#[cold]
375375
fn is_zero_slow_path() -> bool {

0 commit comments

Comments
 (0)