From c9dd4823d98141754842c0b356b141d94ba36604 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 20 Mar 2010 03:30:59 +0000 Subject: * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi/core.rb | 2 +- lib/cgi/html.rb | 2 +- lib/csv.rb | 6 +++--- lib/ipaddr.rb | 4 ++-- lib/irb/notifier.rb | 8 ++++---- lib/irb/output-method.rb | 2 +- lib/irb/xmp.rb | 2 +- lib/net/https.rb | 2 +- lib/net/smtp.rb | 2 +- lib/optparse.rb | 2 +- lib/prime.rb | 2 +- lib/rake/packagetask.rb | 2 +- lib/rexml/entity.rb | 2 +- lib/rubygems.rb | 2 +- lib/rubygems/commands/dependency_command.rb | 2 +- lib/rubygems/spec_fetcher.rb | 2 +- lib/shell/command-processor.rb | 2 +- lib/shell/process-controller.rb | 6 +++--- lib/thwait.rb | 2 +- lib/xmlrpc/server.rb | 2 +- 20 files changed, 28 insertions(+), 28 deletions(-) (limited to 'lib') diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index 3930663331..f3e2300414 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -408,7 +408,7 @@ class CGI # values is an Array. attr_reader :params - # Get the uploaed files as a hash of name=>values pairs + # Get the uploaded files as a hash of name=>values pairs attr_reader :files # Set all the parameters. diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb index 8ee38000c5..28642198fd 100644 --- a/lib/cgi/html.rb +++ b/lib/cgi/html.rb @@ -455,7 +455,7 @@ class CGI # image_button("url", "name", "string") # # # - # image_button("SRC" => "url", "ATL" => "strng") + # image_button("SRC" => "url", "ALT" => "string") # # def image_button(src = "", name = nil, alt = nil) attributes = if src.kind_of?(String) diff --git a/lib/csv.rb b/lib/csv.rb index c61e57c222..b9066f9cc8 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -1212,7 +1212,7 @@ class CSV # Note that a passed String *is* modfied by this method. Call dup() before # passing if you need a new String. # - # The +options+ parameter can be anthing CSV::new() understands. This method + # The +options+ parameter can be anything CSV::new() understands. This method # understands an additional :encoding parameter when not passed a # String to set the base Encoding for the output. CSV needs this hint if you # plan to output non-ASCII compatible data. @@ -1238,7 +1238,7 @@ class CSV # This method is a shortcut for converting a single row (Array) into a CSV # String. # - # The +options+ parameter can be anthing CSV::new() understands. This method + # The +options+ parameter can be anything CSV::new() understands. This method # understands an additional :encoding parameter to set the base # Encoding for the output. This method will try to guess your Encoding from # the first non-+nil+ field in +row+, if possible, but you may need to use @@ -1372,7 +1372,7 @@ class CSV # a into an Array. Note that if +line+ contains multiple rows, anything # beyond the first row is ignored. # - # The +options+ parameter can be anthing CSV::new() understands. + # The +options+ parameter can be anything CSV::new() understands. # def self.parse_line(line, options = Hash.new) new(line, options).shift diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb index 282ca09a8f..1fa0ed610f 100644 --- a/lib/ipaddr.rb +++ b/lib/ipaddr.rb @@ -444,7 +444,7 @@ class IPAddr # automatically from a specified string, you can specify one # explicitly by the optional second argument. # - # Otherwise an IP addess is generated from a packed in_addr value + # Otherwise an IP address is generated from a packed in_addr value # and an address family. # # The IPAddr class defines many methods and operators, and some of @@ -472,7 +472,7 @@ class IPAddr #Socket.getaddrinfo(left, nil, Socket::AF_INET6, Socket::SOCK_STREAM, nil, # Socket::AI_NUMERICHOST) begin - IPSocket.getaddress(prefix) # test if address is vaild + IPSocket.getaddress(prefix) # test if address is valid rescue raise ArgumentError, "invalid address" end diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb index fdfcdd2dbc..d20679da4a 100644 --- a/lib/irb/notifier.rb +++ b/lib/irb/notifier.rb @@ -25,7 +25,7 @@ module IRB end module_function :def_notifier - class AbstructNotifier + class AbstractNotifier def initialize(prefix, base_notifier) @prefix = prefix @base_notifier = base_notifier @@ -72,7 +72,7 @@ module IRB end end - class CompositeNotifier