Skip to content

Commit 555dd6f

Browse files
authored
Rollup merge of #136133 - hkBst:patch-23, r=ibraheemdev
Fix sentence in process::abort
2 parents 78794d0 + 0617106 commit 555dd6f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

library/std/src/process.rs

+4-8
Original file line numberDiff line numberDiff line change
@@ -2318,14 +2318,10 @@ pub fn exit(code: i32) -> ! {
23182318
/// Terminates the process in an abnormal fashion.
23192319
///
23202320
/// The function will never return and will immediately terminate the current
2321-
/// process in a platform specific "abnormal" manner.
2322-
///
2323-
/// Note that because this function never returns, and that it terminates the
2324-
/// process, no destructors on the current stack or any other thread's stack
2325-
/// will be run.
2326-
///
2327-
/// Rust IO buffers (eg, from `BufWriter`) will not be flushed.
2328-
/// Likewise, C stdio buffers will (on most platforms) not be flushed.
2321+
/// process in a platform specific "abnormal" manner. As a consequence,
2322+
/// no destructors on the current stack or any other thread's stack
2323+
/// will be run, Rust IO buffers (eg, from `BufWriter`) will not be flushed,
2324+
/// and C stdio buffers will (on most platforms) not be flushed.
23292325
///
23302326
/// This is in contrast to the default behavior of [`panic!`] which unwinds
23312327
/// the current thread's stack and calls all destructors.

0 commit comments

Comments
 (0)