diff options
author | Nithin Bekal <nithinbekal@gmail.com> | 2024-10-01 22:52:04 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-10-02 17:07:46 +0900 |
commit | b7a33aef9eeb93fcad997ddaa0e8991b9373a32b (patch) | |
tree | 5811cfed6508f0aecaca6fca627716f267a76743 /kernel.rb | |
parent | bae3d6813470bacbaac281616a07d9079697c882 (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.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |