summaryrefslogtreecommitdiff
path: root/yjit/src/stats.rs
diff options
context:
space:
mode:
authorAlan Wu <alanwu@ruby-lang.org>2023-02-02 16:16:45 -0500
committerAlan Wu <alanwu@ruby-lang.org>2023-02-02 16:16:45 -0500
commit92ac5f686b72942c9709a8f3e07f45f6a44ebc6b (patch)
treec5e270ce94daf68757f534912f89dd3429a9578b /yjit/src/stats.rs
parent3b83b265f11965582d4b9b439eff8a501792ab68 (diff)
downloadruby-92ac5f686b72942c9709a8f3e07f45f6a44ebc6b.tar.gz
Fix typos in YJIT [ci skip]
Diffstat (limited to 'yjit/src/stats.rs')
-rw-r--r--yjit/src/stats.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/yjit/src/stats.rs b/yjit/src/stats.rs
index bd75d7fc05..9b0b4773ec 100644
--- a/yjit/src/stats.rs
+++ b/yjit/src/stats.rs
@@ -109,7 +109,7 @@ impl YjitExitLocations {
// Increase index for exit instruction.
idx += 1;
- // Increase index for bookeeping value (number of times we've seen this
+ // Increase index for bookkeeping value (number of times we've seen this
// row in a stack).
idx += 1;
}
@@ -457,7 +457,7 @@ fn rb_yjit_gen_stats_dict() -> VALUE {
#[cfg(not(feature = "stats"))]
if counter_name == &"vm_insns_count" {
// If the stats feature is disabled, we don't have vm_insns_count
- // so we are going to exlcude the key
+ // so we are going to exclude the key
continue;
}
@@ -541,7 +541,7 @@ pub extern "C" fn rb_yjit_record_exit_stack(exit_pc: *const VALUE)
let mut prev_frame_idx = 0;
let mut seen_already = true;
- // If the previous stack lenght and current stack length are equal,
+ // If the previous stack length and current stack length are equal,
// loop and compare the current frame to the previous frame. If they are
// not equal, set seen_already to false and break out of the loop.
if prev_stack_len == stack_length as i64 {