Skip to content

Commit 25f277a

Browse files
hihsbt
authored andcommitted
Fix typos in gc.c and gc.rb
1 parent 5931491 commit 25f277a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ id2ref_tbl_mark(void *data)
18161816
// It's very unlikely, but if enough object ids were generated, keys may be T_BIGNUM
18171817
rb_mark_set(table);
18181818
}
1819-
// We purposedly don't mark values, as they are weak references.
1819+
// We purposely don't mark values, as they are weak references.
18201820
// rb_gc_obj_free_vm_weak_references takes care of cleaning them up.
18211821
}
18221822

gc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module GC
3737
# interleaved with program execution both before the method returns and afterward;
3838
# therefore sweeping may not be completed before the return.
3939
#
40-
# Note that these keword arguments are implementation- and version-dependent,
40+
# Note that these keyword arguments are implementation- and version-dependent,
4141
# are not guaranteed to be future-compatible,
4242
# and may be ignored in some implementations.
4343
def self.start full_mark: true, immediate_mark: true, immediate_sweep: true

0 commit comments

Comments
 (0)