From b7a33aef9eeb93fcad997ddaa0e8991b9373a32b Mon Sep 17 00:00:00 2001 From: Nithin Bekal Date: Tue, 1 Oct 2024 22:52:04 -0400 Subject: [PATCH] [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. --- kernel.rb | 6 +++--- 1 file 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