summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel.rb b/kernel.rb
index 4f7f6a38ca..de20fffcf9 100644
--- a/kernel.rb
+++ b/kernel.rb
@@ -105,7 +105,7 @@ module Kernel
# require 'json'
#
# construct_url(arguments).
- # then {|url| URI.open(url).read }.
+ # then {|url| URI(url).read }.
# then {|response| JSON.parse(response) }
#
# When called without block, the method returns +Enumerator+,
@@ -138,7 +138,7 @@ module Kernel
# require 'json'
#
# construct_url(arguments).
- # then {|url| URI.open(url).read }.
+ # then {|url| URI(url).read }.
# then {|response| JSON.parse(response) }
#
def yield_self