Skip to content

Commit 745ca2a

Browse files
authored
Rollup merge of rust-lang#72344 - kornelski:assertdoc, r=Mark-Simulacrum
Assert doc wording The current wording implies unsafe code is dependent on assert: https://users.rust-lang.org/t/are-assert-statements-included-in-unsafe-blocks/42865
2 parents 8178808 + 5b65c0f commit 745ca2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/macros/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ pub(crate) mod builtin {
12431243
/// be disabled. See [`debug_assert!`] for assertions that are not enabled in
12441244
/// release builds by default.
12451245
///
1246-
/// Unsafe code relies on `assert!` to enforce run-time invariants that, if
1246+
/// Unsafe code may rely on `assert!` to enforce run-time invariants that, if
12471247
/// violated could lead to unsafety.
12481248
///
12491249
/// Other use-cases of `assert!` include testing and enforcing run-time

0 commit comments

Comments
 (0)