summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2021-04-26 00:10:39 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-04-26 10:07:41 +0900
commit33f2ff3babb7054f3df1efa25c1285e09613d7b8 (patch)
tree4c47e98fd4194080fb4d0d047100731b076babc0 /gc.c
parentf9b62b5cc04fa87f0970c9ca3d1cbbc9be8bf8fe (diff)
Fix some typos by spell checker
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4414
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index fccb2e9b8d..4d78b85543 100644
--- a/gc.c
+++ b/gc.c
@@ -3344,7 +3344,7 @@ objspace_each_objects(rb_objspace_t *objspace, each_obj_callback *callback, void
* heap. This will be a snapshot of the state of the heap before we
* call the callback over each page that exists in this buffer. Thus it
* is safe for the callback to allocate objects without possibly entering
- * an infinte loop. */
+ * an infinite loop. */
struct heap_page *page = 0;
size_t pages_count = 0;
list_for_each(&heap_eden->pages, page, page_node) {
@@ -4033,7 +4033,7 @@ id2ref_obj_tbl(rb_objspace_t *objspace, VALUE objid)
* r = ObjectSpace._id2ref(s.object_id) #=> "I am a string"
* r == s #=> true
*
- * On multi-ractor mode, if the object is not sharable, it raises
+ * On multi-ractor mode, if the object is not shareable, it raises
* RangeError.
*/