summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gc.c6
-rw-r--r--proc.c4
-rw-r--r--variable.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/gc.c b/gc.c
index d46775cef1..121bc079da 100644
--- a/gc.c
+++ b/gc.c
@@ -211,7 +211,7 @@ static ruby_gc_params_t gc_params = {
/* RGENGC_ESTIMATE_OLDMALLOC
* Enable/disable to estimate increase size of malloc'ed size by old objects.
- * If estimation exceeds threashold, then will invoke full GC.
+ * If estimation exceeds threshold, then will invoke full GC.
* 0: disable estimation.
* 1: enable estimation.
*/
@@ -4206,7 +4206,7 @@ verify_internal_consistency_i(void *page_start, void *page_end, size_t stride, v
* Verify internal consistency.
*
* This method is implementation specific.
- * Now this method checks generatioanl consistency
+ * Now this method checks generational consistency
* if RGenGC is supported.
*/
static VALUE
@@ -5702,7 +5702,7 @@ gc_set_initial_pages(void)
* * RUBY_GC_HEAP_INIT_SLOTS
* - Initial allocation slots.
* * RUBY_GC_HEAP_FREE_SLOTS
- * - Prepare at least this ammount of slots after GC.
+ * - Prepare at least this amount of slots after GC.
* - Allocate slots if there are not enough slots.
* * RUBY_GC_HEAP_GROWTH_FACTOR (new from 2.1)
* - Allocate slots by this factor.
diff --git a/proc.c b/proc.c
index 8519dfdaaa..fc8fd7adfe 100644
--- a/proc.c
+++ b/proc.c
@@ -1113,7 +1113,7 @@ proc_to_s(VALUE self)
/*
* call-seq:
- * prc.to_proc -> prc
+ * prc.to_proc -> proc
*
* Part of the protocol for converting objects to <code>Proc</code>
* objects. Instances of class <code>Proc</code> simply return
@@ -2366,7 +2366,7 @@ rb_proc_new(
/*
* call-seq:
- * meth.to_proc -> prc
+ * meth.to_proc -> proc
*
* Returns a <code>Proc</code> object corresponding to this method.
*/
diff --git a/variable.c b/variable.c
index 21c3f66189..d142255a25 100644
--- a/variable.c
+++ b/variable.c
@@ -635,7 +635,7 @@ rb_trace_eval(VALUE cmd, VALUE val)
* trace_var(symbol) {|val| block } -> nil
*
* Controls tracing of assignments to global variables. The parameter
- * +symbol_ identifies the variable (as either a string name or a
+ * +symbol+ identifies the variable (as either a string name or a
* symbol identifier). _cmd_ (which may be a string or a
* +Proc+ object) or block is executed whenever the variable
* is assigned. The block or +Proc+ object receives the