From 3a05da132184ee2a1ccac86b4b7fa865dc05c846 Mon Sep 17 00:00:00 2001 From: a_matsuda Date: Wed, 23 Dec 2015 03:43:23 +0000 Subject: [PATCH] [DOC] Fix typos * benchmark.rb * getoptlong.rb * irb.rb * net/http.rb * net/http/header.rb * net/imap.rb * optparse.rb * pstore.rb * webrick.rb * xmlrpc.rb [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/benchmark.rb | 2 +- lib/getoptlong.rb | 2 +- lib/irb.rb | 4 ++-- lib/net/http.rb | 2 +- lib/net/http/header.rb | 2 +- lib/net/imap.rb | 2 +- lib/optparse.rb | 4 ++-- lib/pstore.rb | 2 +- lib/webrick.rb | 2 +- lib/xmlrpc.rb | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/benchmark.rb b/lib/benchmark.rb index 3aeed0c9a6..ec1b658cde 100644 --- a/lib/benchmark.rb +++ b/lib/benchmark.rb @@ -26,7 +26,7 @@ # # puts Benchmark.measure { "a"*1_000_000_000 } # -# On my machine (OSX 10.8.3 on i5 1.7 Ghz) this generates: +# On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates: # # 0.350000 0.400000 0.750000 ( 0.835234) # diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb index e81493ea50..8aa91b82e0 100644 --- a/lib/getoptlong.rb +++ b/lib/getoptlong.rb @@ -575,7 +575,7 @@ class GetoptLong else # # This is a non-option argument. - # Only RETURN_IN_ORDER falled into here. + # Only RETURN_IN_ORDER fell into here. # return '', argument end diff --git a/lib/irb.rb b/lib/irb.rb index b9b39c9f28..45f328008c 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -329,7 +329,7 @@ require "irb/locale" # irb.3():003:0> bar #=> bar => nil # # kill jobs 1, 2, and 3 # irb.3():004:0> kill 1, 2, 3 -# # list open sesssions, should only include main session +# # list open sessions, should only include main session # irb(main):009:0> jobs # #0->irb on main (# : running) # # quit irb @@ -344,7 +344,7 @@ module IRB # Displays current configuration. # - # Modifing the configuration is achieved by sending a message to IRB.conf. + # Modifying the configuration is achieved by sending a message to IRB.conf. # # See IRB@Configuration for more information. def IRB.conf diff --git a/lib/net/http.rb b/lib/net/http.rb index 8149215a1c..bc01b29bff 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -929,7 +929,7 @@ module Net #:nodoc: while true raise Net::OpenTimeout if timeout <= 0 start = Process.clock_gettime Process::CLOCK_MONOTONIC - # to_io is requied because SSLSocket doesn't have wait_readable yet + # to_io is required because SSLSocket doesn't have wait_readable yet case s.connect_nonblock(exception: false) when :wait_readable; s.to_io.wait_readable(timeout) when :wait_writable; s.to_io.wait_writable(timeout) diff --git a/lib/net/http/header.rb b/lib/net/http/header.rb index a911d5d255..5d99e8f070 100644 --- a/lib/net/http/header.rb +++ b/lib/net/http/header.rb @@ -378,7 +378,7 @@ module Net::HTTPHeader # +params+ is the form data set; it is an Array of Arrays or a Hash # +enctype is the type to encode the form data set. # It is application/x-www-form-urlencoded or multipart/form-data. - # +formpot+ is an optional hash to specify the detail. + # +formopt+ is an optional hash to specify the detail. # # boundary:: the boundary of the multipart message # charset:: the charset of the message. All names and the values of diff --git a/lib/net/imap.rb b/lib/net/imap.rb index 8ddeb94c63..439ca13206 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -779,7 +779,7 @@ module Net # # The +set+ parameter is a number or a range between two numbers, # or an array of those. The number is a message sequence number, - # where -1 repesents a '*' for use in range notation like 100..-1 + # where -1 represents a '*' for use in range notation like 100..-1 # being interpreted as '100:*'. Beware that the +exclude_end?+ # property of a Range object is ignored, and the contents of a # range are independent of the order of the range endpoints as per diff --git a/lib/optparse.rb b/lib/optparse.rb index 49f7ebee9d..b33d4cb395 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -120,7 +120,7 @@ # # -n, --name=NAME Name to say hello to # # -h, --help Prints this help # -# === Required Arugments +# === Required Arguments # # For options that require an argument, option specification strings may include an # option name in all caps. If an option is used without the required argument, @@ -175,7 +175,7 @@ # As an example, the built-in +Time+ conversion is used. The other built-in # conversions behave in the same way. # OptionParser will attempt to parse the argument -# as a +Time+. If it succeeeds, that time will be passed to the +# as a +Time+. If it succeeds, that time will be passed to the # handler block. Otherwise, an exception will be raised. # # require 'optparse' diff --git a/lib/pstore.rb b/lib/pstore.rb index 2769b25065..8dfcaec7df 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -190,7 +190,7 @@ class PStore # store.transaction do # begin transaction # # load some data into the store... # store[:single_object] = "My data..." - # store[:obj_heirarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"], + # store[:obj_hierarchy] = { "Kev Jackson" => ["rational.rb", "pstore.rb"], # "James Gray" => ["erb.rb", "pstore.rb"] } # end # commit changes to data store file # diff --git a/lib/webrick.rb b/lib/webrick.rb index b7f327ca33..cbaf18a792 100644 --- a/lib/webrick.rb +++ b/lib/webrick.rb @@ -9,7 +9,7 @@ # # A WEBrick server can be composed of multiple WEBrick servers or servlets to # provide differing behavior on a per-host or per-path basis. WEBrick -# includes servlets for handling CGI scripts, ERb pages, Ruby blocks and +# includes servlets for handling CGI scripts, ERB pages, Ruby blocks and # directory listings. # # WEBrick also includes tools for daemonizing a process and starting a process diff --git a/lib/xmlrpc.rb b/lib/xmlrpc.rb index aa24afacac..3928bf0d95 100644 --- a/lib/xmlrpc.rb +++ b/lib/xmlrpc.rb @@ -71,7 +71,7 @@ # # * General # * possible to choose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers -# * Marshalling Ruby objects to Hashs and reconstruct them later from a Hash +# * Marshalling Ruby objects to Hashes and reconstruct them later from a Hash # * SandStorm component architecture XMLRPC::Client interface # # == Howto