Skip to content

Commit 44852e0

Browse files
ijacksonm-ou-se
andcommitted
Talk about invalid instructions rather than debug traps
And withdraw the allegation of "abuse". Adapted from a suggestion by @m-ou-se. Co-authored-by: Mara Bos <[email protected]> Signed-off-by: Ian Jackson <[email protected]>
1 parent 4e7c348 commit 44852e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/intrinsics.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,8 @@ extern "rust-intrinsic" {
720720
/// [`std::process::abort`](../../std/process/fn.abort.html) is to be preferred if possible,
721721
/// as its behaviour is more user-friendly and more stable.
722722
///
723-
/// The current implementation of `intrinsics::abort` (ab)uses a debug trap
724-
/// on some popular platforms.
723+
/// The current implementation of `intrinsics::abort` is to invoke an invalid instruction,
724+
/// on most platforms.
725725
/// On Unix, the
726726
/// process will probably die of a signal like `SIGABRT`, `SIGILL`, `SIGTRAP`, `SIGSEGV` or
727727
/// `SIGBUS`. The precise behaviour is not guaranteed and not stable.

0 commit comments

Comments
 (0)