summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaoufikMejri <taoufik.almejri@gmail.com>2025-10-12 19:55:07 +0100
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2025-10-19 20:35:57 +0900
commit2f20dc5dc5806cf1a836420e0216b814d0c6252a (patch)
tree4d6d2a34761da6b9369b19c95136970e519e3c99
parent8edb40f6e82994059c25917a193bf317897ec4d0 (diff)
[DOC] Improve loop code example documentation
-rw-r--r--kernel.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel.rb b/kernel.rb
index 5d596c8892..dc5cea1515 100644
--- a/kernel.rb
+++ b/kernel.rb
@@ -141,6 +141,7 @@ module Kernel
# loop do
# print "Input: "
# line = gets
+ # # break if q, Q is entered or EOF signal (Ctrl-D on Unix, Ctrl-Z on windows) is sent
# break if !line or line =~ /^q/i
# # ...
# end