about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMarijn Schouten <hkBst@users.noreply.github.com>2025-01-27 15:00:21 +0100
committerMarijn Schouten <mhkbst@gmail.com>2025-02-01 13:32:01 +0100
commit06171066d2ff8d71138c42f5f7c9c7e906be1102 (patch)
tree54d9bea2a3c6b5c6d802096fcffba39f4c3fe284
parent55459598c250d985eb5f840306dfb59f267c03b6 (diff)
downloadrust-06171066d2ff8d71138c42f5f7c9c7e906be1102.tar.gz
rust-06171066d2ff8d71138c42f5f7c9c7e906be1102.zip
Fix sentence in process::abort
-rw-r--r--library/std/src/process.rs12
1 files changed, 4 insertions, 8 deletions
diff --git a/library/std/src/process.rs b/library/std/src/process.rs
index e0dd2e14817..fd0fd1cb755 100644
--- a/library/std/src/process.rs
+++ b/library/std/src/process.rs
@@ -2318,14 +2318,10 @@ pub fn exit(code: i32) -> ! {
 /// Terminates the process in an abnormal fashion.
 ///
 /// The function will never return and will immediately terminate the current
-/// process in a platform specific "abnormal" manner.
-///
-/// Note that because this function never returns, and that it terminates the
-/// process, no destructors on the current stack or any other thread's stack
-/// will be run.
-///
-/// Rust IO buffers (eg, from `BufWriter`) will not be flushed.
-/// Likewise, C stdio buffers will (on most platforms) not be flushed.
+/// process in a platform specific "abnormal" manner. As a consequence,
+/// no destructors on the current stack or any other thread's stack
+/// will be run, Rust IO buffers (eg, from `BufWriter`) will not be flushed,
+/// and C stdio buffers will (on most platforms) not be flushed.
 ///
 /// This is in contrast to the default behavior of [`panic!`] which unwinds
 /// the current thread's stack and calls all destructors.