summaryrefslogtreecommitdiff
path: root/kernel.rb
diff options
authorNithin Bekal <nithinbekal@gmail.com>2024-10-01 22:52:04 -0400
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2024-10-02 17:07:46 +0900
commitb7a33aef9eeb93fcad997ddaa0e8991b9373a32b (patch)
tree5811cfed6508f0aecaca6fca627716f267a76743 /kernel.rb
parentbae3d6813470bacbaac281616a07d9079697c882 (diff)
[DOC] Keep example styles consistent
The examples of chaining for other methods, such as #tap have the dot at the start of the line, while #then has it at the end of the previous line. Updated this to have consistent style in Kernel docs.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11758
Diffstat (limited to 'kernel.rb')
-rw-r--r--kernel.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel.rb b/kernel.rb
index 0c95ad0042..07878e82dc 100644
--- a/kernel.rb
+++ b/kernel.rb
@@ -105,9 +105,9 @@ module Kernel
# require 'open-uri'
# require 'json'
#
- # construct_url(arguments).
- # then {|url| URI(url).read }.
- # then {|response| JSON.parse(response) }
+ # construct_url(arguments)
+ # .then {|url| URI(url).read }
+ # .then {|response| JSON.parse(response) }
#
# When called without block, the method returns +Enumerator+,
# which can be used, for example, for conditional
close