about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChai T. Rex <ChaiTRex@users.noreply.github.com>2024-08-21 16:39:13 -0400
committerChai T. Rex <ChaiTRex@users.noreply.github.com>2024-08-21 17:35:54 -0400
commitc836739529af2cfba4a76fb8b334f5621d66b4c2 (patch)
tree0f58c9f7304f149d77feed29a373b000550a4d3d
parent982c6f8721416431ec62bb0b9105c0578a9fc603 (diff)
downloadrust-c836739529af2cfba4a76fb8b334f5621d66b4c2.tar.gz
rust-c836739529af2cfba4a76fb8b334f5621d66b4c2.zip
Change `assert_unsafe_precondition` docs to refer to `check_language_ub`
-rw-r--r--library/core/src/ub_checks.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ub_checks.rs b/library/core/src/ub_checks.rs
index b65b48c162d..c1a8c34539e 100644
--- a/library/core/src/ub_checks.rs
+++ b/library/core/src/ub_checks.rs
@@ -10,7 +10,7 @@ use crate::intrinsics::{self, const_eval_select};
 /// macro for language UB are always ignored.
 ///
 /// This macro should be called as
-/// `assert_unsafe_precondition!(check_{library,lang}_ub, "message", (ident: type = expr, ident: type = expr) => check_expr)`
+/// `assert_unsafe_precondition!(check_{library,language}_ub, "message", (ident: type = expr, ident: type = expr) => check_expr)`
 /// where each `expr` will be evaluated and passed in as function argument `ident: type`. Then all
 /// those arguments are passed to a function with the body `check_expr`.
 /// Pick `check_language_ub` when this is guarding a violation of language UB, i.e., immediate UB