aboutsummaryrefslogtreecommitdiffstats
path: root/vm_eval.c
diff options
context:
space:
mode:
authorJanosch Müller <janosch84@gmail.com>2022-12-08 22:14:08 +0100
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-09 11:26:26 +0900
commit6ea3edbdad1ecad20f9856e0e260e5ca5976b7fc (patch)
tree5b03ecadc3ae6118a3a6fcc2970ff097a827d7cd /vm_eval.c
parente714907d82f486c13fc1ea5e3ad291dabf4e7fbe (diff)
downloadruby-6ea3edbdad1ecad20f9856e0e260e5ca5976b7fc.tar.gz
Fix bad code example in documentation
Diffstat (limited to 'vm_eval.c')
-rw-r--r--vm_eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_eval.c b/vm_eval.c
index c83a88f9fa..2e1a9b80a6 100644
--- a/vm_eval.c
+++ b/vm_eval.c
@@ -1473,7 +1473,7 @@ rb_f_loop_size(VALUE self, VALUE args, VALUE eobj)
* loop do
* print "Input: "
* line = gets
- * break if !line or line =~ /^qQ/
+ * break if !line or line =~ /^q/i
* # ...
* end
*