Skip to content

Commit 54bed7e

Browse files
XrXrtekknolagi
andcommitted
[DOC] ZJIT: Function::find: Give advice instead of talking about safety
Co-Authored-By: Max Bernstein <max.bernstein@shopify.com>
1 parent 224a02f commit 54bed7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zjit/src/hir.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,8 @@ impl Function {
785785
/// the union-find table (to find the current most-optimized version of this instruction). See
786786
/// [`UnionFind`] for more.
787787
///
788-
/// Use for pattern matching over instructions in a union-find-safe way. For example:
788+
/// This is _the_ function for reading [`Insn`]. Use frequently. Example:
789+
///
789790
/// ```rust
790791
/// match func.find(insn_id) {
791792
/// IfTrue { val, target } if func.is_truthy(val) => {

0 commit comments

Comments
 (0)