summaryrefslogtreecommitdiff
path: root/vm_eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_eval.c b/vm_eval.c
index ce7057476c..54debd7fec 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -459,12 +459,12 @@ NORETURN(static void raise_method_missing(rb_thread_t *th, int argc, const VALUE
* values.
*
* class Roman
- * def romanToInt(str)
+ * def roman_to_int(str)
* # ...
* end
* def method_missing(methId)
* str = methId.id2name
- * romanToInt(str)
+ * roman_to_int(str)
* end
* end
*
@@ -1082,12 +1082,12 @@ eval_string(VALUE self, VALUE src, VALUE scope, const char *file, int line)
* optional <em>filename</em> and <em>lineno</em> parameters are
* present, they will be used when reporting syntax errors.
*
- * def getBinding(str)
+ * def get_binding(str)
* return binding
* end
* str = "hello"
* eval "str + ' Fred'" #=> "hello Fred"
- * eval "str + ' Fred'", getBinding("bye") #=> "bye Fred"
+ * eval "str + ' Fred'", get_binding("bye") #=> "bye Fred"
*/
VALUE