[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.
This commit is contained in:
Nithin Bekal 2024-10-01 22:52:04 -04:00 committed by Nobuyoshi Nakada
parent bae3d68134
commit b7a33aef9e
Notes: git 2024-10-02 08:08:03 +00:00

View File

@ -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