summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-09-27 03:14:14 +0900
committergit <svn-admin@ruby-lang.org>2021-09-27 03:23:41 +0900
commit51773bed10eb9d8f4d38e1a1e9d9d04d4954380d (patch)
tree6651cd151c7c1a76029f986e9f2a96942461a2b2
parent2ae64bf6b92bc64005830fc8778a56a3a8f44865 (diff)
[ruby/irb] Add blank lines to sample code in doc for readability
https://github.com/ruby/irb/commit/123b7e53ee
-rw-r--r--lib/irb/context.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index b8f88b661f..6dc5d7f0fd 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -264,10 +264,13 @@ module IRB
#
# a = "omg"
# #=> omg
+ #
# a = "omg" * 10
# #=> omgomgomgomgomgomgomg...
+ #
# IRB.CurrentContext.echo_on_assignment = false
# a = "omg"
+ #
# IRB.CurrentContext.echo_on_assignment = true
# a = "omg" * 10
# #=> omgomgomgomgomgomgomgomgomgomg