diff options
| author | Vincent Lin <bugtender@users.noreply.github.com> | 2025-10-14 12:05:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-14 19:05:18 +0800 |
| commit | 34ee5cbf13d42d2fc48f48cbf787571d0c6e5729 (patch) | |
| tree | c6d562ee5652ee785f8a5c88b8fc50c24e727ba5 | |
| parent | 2002aa3ec295b4323cb10a7e80f057a1e61341f1 (diff) | |
[DOC] Fix minor typos in YJIT comments (#14829)
[DOC] Fix typos in YJIT core
| -rw-r--r-- | yjit/src/core.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs index 2999f151bf..0a14c44ae4 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -2427,7 +2427,7 @@ impl<'a> JITState<'a> { // SAFETY: allocated with Box above unsafe { ptr::write(blockref, block) }; - // Block is initialized now. Note that MaybeUnint<T> has the same layout as T. + // Block is initialized now. Note that MaybeUninit<T> has the same layout as T. let blockref = NonNull::new(blockref as *mut Block).expect("no null from Box"); // Track all the assumptions the block makes as invariants @@ -3797,7 +3797,7 @@ pub fn gen_branch_stub_hit_trampoline(ocb: &mut OutlinedCb) -> Option<CodePtr> { let mut asm = Assembler::new_without_iseq(); // For `branch_stub_hit(branch_ptr, target_idx, ec)`, - // `branch_ptr` and `target_idx` is different for each stub, + // `branch_ptr` and `target_idx` are different for each stub, // but the call and what's after is the same. This trampoline // is the unchanging part. // Since this trampoline is static, it allows code GC inside |
