From 54bed7e2577503705e9dc8308f3541c255c9accb Mon Sep 17 00:00:00 2001 From: Alan Wu Date: Fri, 23 May 2025 23:49:08 +0900 Subject: [PATCH] [DOC] ZJIT: `Function::find`: Give advice instead of talking about safety Co-Authored-By: Max Bernstein --- zjit/src/hir.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index be02d0915d..bac088f2c1 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -785,7 +785,8 @@ impl Function { /// the union-find table (to find the current most-optimized version of this instruction). See /// [`UnionFind`] for more. /// - /// Use for pattern matching over instructions in a union-find-safe way. For example: + /// This is _the_ function for reading [`Insn`]. Use frequently. Example: + /// /// ```rust /// match func.find(insn_id) { /// IfTrue { val, target } if func.is_truthy(val) => {