summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yjit/src/core.rs6
-rw-r--r--yjit/src/utils.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs
index c8e17d325d..b5a9d69205 100644
--- a/yjit/src/core.rs
+++ b/yjit/src/core.rs
@@ -1103,7 +1103,7 @@ pub extern "C" fn rb_yjit_iseq_free(payload: *mut c_void) {
incr_counter!(freed_iseq_count);
}
-/// GC callback for marking GC objects in the the per-iseq payload.
+/// GC callback for marking GC objects in the per-iseq payload.
#[no_mangle]
pub extern "C" fn rb_yjit_iseq_mark(payload: *mut c_void) {
let payload = if payload.is_null() {
@@ -1166,7 +1166,7 @@ pub extern "C" fn rb_yjit_iseq_mark(payload: *mut c_void) {
}
}
-/// GC callback for updating GC objects in the the per-iseq payload.
+/// GC callback for updating GC objects in the per-iseq payload.
/// This is a mirror of [rb_yjit_iseq_mark].
#[no_mangle]
pub extern "C" fn rb_yjit_iseq_update_references(payload: *mut c_void) {
@@ -2954,7 +2954,7 @@ pub fn invalidate_block_version(blockref: &BlockRef) {
// Get a pointer to the generated code for this block
let block_start = block.start_addr;
- // Make the the start of the block do an exit. This handles OOM situations
+ // Make the start of the block do an exit. This handles OOM situations
// and some cases where we can't efficiently patch incoming branches.
// Do this first, since in case there is a fallthrough branch into this
// block, the patching loop below can overwrite the start of the block.
diff --git a/yjit/src/utils.rs b/yjit/src/utils.rs
index 396b330abf..3a8f0ef590 100644
--- a/yjit/src/utils.rs
+++ b/yjit/src/utils.rs
@@ -5,7 +5,7 @@ use crate::cruby::*;
use std::slice;
/// Trait for casting to [usize] that allows you to say `.as_usize()`.
-/// Implementation conditional on the the cast preserving the numeric value on
+/// Implementation conditional on the cast preserving the numeric value on
/// all inputs and being inexpensive.
///
/// [usize] is only guaranteed to be more than 16-bit wide, so we can't use