Rollup merge of #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
This commit is contained in:
Dylan DPC
2020-05-19 13:53:47 +02:00
committed by GitHub
+1 -1
View File
@@ -1243,7 +1243,7 @@ macro_rules! include {
/// be disabled. See [`debug_assert!`] for assertions that are not enabled in
/// release builds by default.
///
/// Unsafe code relies on `assert!` to enforce run-time invariants that, if
/// Unsafe code may rely on `assert!` to enforce run-time invariants that, if
/// violated could lead to unsafety.
///
/// Other use-cases of `assert!` include testing and enforcing run-time