Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3e5b175

Browse files
committedFeb 10, 2024
Fix assert_unsafe_precondition doc typos
1 parent 73de723 commit 3e5b175

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎library/core/src/intrinsics.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,7 @@ pub(crate) const fn debug_assertions() -> bool {
25972597
/// These checks are behind a condition which is evaluated at codegen time, not expansion time like
25982598
/// [`debug_assert`]. This means that a standard library built with optimizations and debug
25992599
/// assertions disabled will have these checks optimized out of its monomorphizations, but if a
2600-
/// a caller of the standard library has debug assertions enabled and monomorphizes an expansion of
2600+
/// caller of the standard library has debug assertions enabled and monomorphizes an expansion of
26012601
/// this macro, that monomorphization will contain the check.
26022602
///
26032603
/// Since these checks cannot be optimized out in MIR, some care must be taken in both call and
@@ -2606,8 +2606,8 @@ pub(crate) const fn debug_assertions() -> bool {
26062606
/// combination of properties ensures that the code for the checks is only compiled once, and has a
26072607
/// minimal impact on the caller's code size.
26082608
///
2609-
/// Caller should also introducing any other `let` bindings or any code outside this macro in order
2610-
/// to call it. Since the precompiled standard library is built with full debuginfo and these
2609+
/// Callers should also avoid introducing any other `let` bindings or any code outside this macro in
2610+
/// order to call it. Since the precompiled standard library is built with full debuginfo and these
26112611
/// variables cannot be optimized out in MIR, an innocent-looking `let` can produce enough
26122612
/// debuginfo to have a measurable compile-time impact on debug builds.
26132613
///

0 commit comments

Comments
 (0)
Please sign in to comment.