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 c836739

Browse files
committedAug 21, 2024
Change assert_unsafe_precondition docs to refer to check_language_ub
1 parent 982c6f8 commit c836739

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎library/core/src/ub_checks.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::intrinsics::{self, const_eval_select};
1010
/// macro for language UB are always ignored.
1111
///
1212
/// This macro should be called as
13-
/// `assert_unsafe_precondition!(check_{library,lang}_ub, "message", (ident: type = expr, ident: type = expr) => check_expr)`
13+
/// `assert_unsafe_precondition!(check_{library,language}_ub, "message", (ident: type = expr, ident: type = expr) => check_expr)`
1414
/// where each `expr` will be evaluated and passed in as function argument `ident: type`. Then all
1515
/// those arguments are passed to a function with the body `check_expr`.
1616
/// Pick `check_language_ub` when this is guarding a violation of language UB, i.e., immediate UB

0 commit comments

Comments
 (0)
Failed to load comments.