diff options
| author | Alan Wu <alanwu@ruby-lang.org> | 2025-05-23 23:49:08 +0900 |
|---|---|---|
| committer | Alan Wu <alanwu@ruby-lang.org> | 2025-05-23 23:51:14 +0900 |
| commit | 54bed7e2577503705e9dc8308f3541c255c9accb (patch) | |
| tree | 4c6c6aca5d6510f62143460cd894939643958d12 | |
| parent | 224a02f924967066fc5c784c2f4a75eea52b11b4 (diff) | |
[DOC] ZJIT: `Function::find`: Give advice instead of talking about safety
Co-Authored-By: Max Bernstein <max.bernstein@shopify.com>
| -rw-r--r-- | zjit/src/hir.rs | 3 |
1 files changed, 2 insertions, 1 deletions
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) => { |
