diff options
author | careworry <[email protected]> | 2024-04-18 23:32:34 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-18 15:32:34 +0000 |
commit | 8e08556fa7f2b6e9c43b040f2aea06dccead5d13 (patch) | |
tree | de8f84a17ebbbcbfe68424aadcef7228925b2ae1 | |
parent | ff599aea7cb810ca5284c10184f435101e4b9349 (diff) |
chore: remove repetitive words (#10573)
Signed-off-by: careworry <[email protected]>
-rw-r--r-- | lib/syntax_suggest/clean_document.rb | 2 | ||||
-rw-r--r-- | spec/ruby/language/break_spec.rb | 2 | ||||
-rw-r--r-- | weakmap.c | 2 | ||||
-rw-r--r-- | yjit/src/codegen.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/syntax_suggest/clean_document.rb b/lib/syntax_suggest/clean_document.rb index 0847a62e27..2790ccae86 100644 --- a/lib/syntax_suggest/clean_document.rb +++ b/lib/syntax_suggest/clean_document.rb @@ -267,7 +267,7 @@ module SyntaxSuggest groups.each do |lines| line = lines.first - # Handle the case of multiple groups in a a row + # Handle the case of multiple groups in a row # if one is already replaced, move on next if @document[line.index].empty? diff --git a/spec/ruby/language/break_spec.rb b/spec/ruby/language/break_spec.rb index 627cb4a071..e725e77e80 100644 --- a/spec/ruby/language/break_spec.rb +++ b/spec/ruby/language/break_spec.rb @@ -372,7 +372,7 @@ describe "Executing break from within a block" do end.should_not raise_error end - it "raises LocalJumpError when converted into a proc during a a super call" do + it "raises LocalJumpError when converted into a proc during a super call" do cls1 = Class.new { def foo(&b); b; end } cls2 = Class.new(cls1) { def foo; super { break 1 }.call; end } @@ -586,7 +586,7 @@ wmap_size(VALUE self) * the key and the object as the value. This means that the key is of the type * `VALUE *` while the value is of the type `VALUE`. * - * The object is not not directly stored as keys in the table because + * The object is not directly stored as keys in the table because * `rb_gc_mark_weak` requires a pointer to the memory location to overwrite * when the object is reclaimed. Using a pointer into the ST table entry is not * safe because the pointer can change when the ST table is resized. diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index d212719c09..b047aa3310 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -1418,7 +1418,7 @@ fn gen_putobject( Some(KeepCompiling) } -/// Combine `putobject` and and `opt_ltlt` together if profitable, for example when +/// Combine `putobject` and `opt_ltlt` together if profitable, for example when /// left shifting an integer by a constant amount. fn fuse_putobject_opt_ltlt( jit: &mut JITState, |