diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 03:10:21 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 03:10:21 +0000 |
commit | edb98f8b910b00be16868b21116924cffad785b9 (patch) | |
tree | eb98e40557395aa10c68c9bba496b62ff11a9369 /lib | |
parent | 67964f299b671c9b29257c7a62000bfbadb4c556 (diff) | |
download | ruby-edb98f8b910b00be16868b21116924cffad785b9.tar.gz |
fix typos. Patch by k_takata.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base64.rb | 2 | ||||
-rw-r--r-- | lib/net/ftp.rb | 2 | ||||
-rw-r--r-- | lib/optparse.rb | 2 | ||||
-rw-r--r-- | lib/prettyprint.rb | 10 | ||||
-rw-r--r-- | lib/racc/parser.rb | 8 | ||||
-rw-r--r-- | lib/rake/name_space.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/rd/block_parser.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/rd/inline_parser.rb | 2 | ||||
-rw-r--r-- | lib/rubygems.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/commands/list_command.rb | 2 | ||||
-rw-r--r-- | lib/shell.rb | 2 | ||||
-rw-r--r-- | lib/sync.rb | 2 | ||||
-rw-r--r-- | lib/tmpdir.rb | 2 |
13 files changed, 20 insertions, 20 deletions
diff --git a/lib/base64.rb b/lib/base64.rb index a240b730b4..98829f0d96 100644 --- a/lib/base64.rb +++ b/lib/base64.rb @@ -25,7 +25,7 @@ module Base64 # Returns the Base64-encoded version of +bin+. # This method complies with RFC 2045. - # Line feeds are added to every 60 encoded charactors. + # Line feeds are added to every 60 encoded characters. # # require 'base64' # Base64.encode64("Now is the time for all good coders\nto learn Ruby") diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 07cb548406..3fb2fda34f 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -214,7 +214,7 @@ module Net $stderr.puts("warning: Net::FTP#return_code= is obsolete and do nothing") end - # Contructs a socket with +host+ and +port+. + # Constructs a socket with +host+ and +port+. # # If SOCKSSocket is defined and the environment (ENV) defines # SOCKS_SERVER, then a SOCKSSocket is returned, else a TCPSocket is diff --git a/lib/optparse.rb b/lib/optparse.rb index 469fde29ae..8a904ff0d7 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -737,7 +737,7 @@ class OptionParser # OPTIONAL_ARGUMENT:: The switch requires an optional argument. (:OPTIONAL) # # Use like --switch=argument (long style) or -Xargument (short style). For - # short style, only portion matched to argument pattern is dealed as + # short style, only portion matched to argument pattern is treated as # argument. # ArgumentStyle = {} diff --git a/lib/prettyprint.rb b/lib/prettyprint.rb index eb498cc70a..5b1da330dd 100644 --- a/lib/prettyprint.rb +++ b/lib/prettyprint.rb @@ -320,7 +320,7 @@ class PrettyPrint # Creates a new text object. # - # This contructor takes no arguments. + # This constructor takes no arguments. # # The workflow is to append a PrettyPrint::Text object to the buffer, and # being able to call the buffer.last() to reference it. @@ -359,7 +359,7 @@ class PrettyPrint # Create a new Breakable object. # # Arguments: - # * +sep+ String of the seperator + # * +sep+ String of the separator # * +width+ Fixnum width of the +sep+ # * +q+ parent PrettyPrint object, to base from def initialize(sep, width, q) @@ -371,7 +371,7 @@ class PrettyPrint @group.breakables.push self end - # Holds the seperator String + # Holds the separator String # # The +sep+ argument from ::new attr_reader :obj @@ -525,14 +525,14 @@ class PrettyPrint @first = [true] end - # Add +obj+ to the text to be outputed. + # Add +obj+ to the text to be output. # # +width+ argument is here for compatibility. It is a noop argument. def text(obj, width=nil) @output << obj end - # Appends +sep+ to the text to be outputed. By default +sep+ is ' ' + # Appends +sep+ to the text to be output. By default +sep+ is ' ' # # +width+ argument is here for compatibility. It is a noop argument. def breakable(sep=' ', width=nil) diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb index 1866d73efb..2a1f4d104c 100644 --- a/lib/racc/parser.rb +++ b/lib/racc/parser.rb @@ -37,7 +37,7 @@ end # [--version] [--copyright] [--help] <var>grammarfile</var> # # [+filename+] -# Racc grammar file. Any extention is permitted. +# Racc grammar file. Any extension is permitted. # [-o+outfile+, --output-file=+outfile+] # A filename for output. default is <+filename+>.tab.rb # [-O+filename+, --log-file=+filename+] @@ -48,12 +48,12 @@ end # [-v, --verbose] # verbose mode. create +filename+.output file, like yacc's y.output file. # [-g, --debug] -# add debug code to parser class. To display debuggin information, +# add debug code to parser class. To display debugging information, # use this '-g' option and set @yydebug true in parser class. # [-E, --embedded] # Output parser which doesn't need runtime files (racc/parser.rb). # [-C, --check-only] -# Check syntax of racc grammer file and quit. +# Check syntax of racc grammar file and quit. # [-S, --output-status] # Print messages time to time while compiling. # [-l, --no-line-convert] @@ -187,7 +187,7 @@ module Racc Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1] begin require 'racc/cparse' - # Racc_Runtime_Core_Version_C = (defined in extention) + # Racc_Runtime_Core_Version_C = (defined in extension) Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2] unless new.respond_to?(:_racc_do_parse_c, true) raise LoadError, 'old cparse.so' diff --git a/lib/rake/name_space.rb b/lib/rake/name_space.rb index e1cc0940b8..e4349e8a3d 100644 --- a/lib/rake/name_space.rb +++ b/lib/rake/name_space.rb @@ -1,6 +1,6 @@ module Rake - # The NameSpace class will lookup task names in the the scope + # The NameSpace class will lookup task names in the scope # defined by a +namespace+ command. # class NameSpace diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb index dd15e1262e..b52454c689 100644 --- a/lib/rdoc/rd/block_parser.rb +++ b/lib/rdoc/rd/block_parser.rb @@ -1,7 +1,7 @@ # # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.9 -# from Racc grammer file "". +# from Racc grammar file "". # require 'racc/parser.rb' diff --git a/lib/rdoc/rd/inline_parser.rb b/lib/rdoc/rd/inline_parser.rb index c3c1f4b030..693eecda21 100644 --- a/lib/rdoc/rd/inline_parser.rb +++ b/lib/rdoc/rd/inline_parser.rb @@ -1,7 +1,7 @@ # # DO NOT MODIFY!!!! # This file is automatically generated by Racc 1.4.9 -# from Racc grammer file "". +# from Racc grammar file "". # require 'racc/parser.rb' diff --git a/lib/rubygems.rb b/lib/rubygems.rb index b5f58fefa0..cbab206d48 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -328,7 +328,7 @@ module Gem end ## - # The path the the data directory specified by the gem name. If the + # The path to the data directory specified by the gem name. If the # package is not available as a gem, return nil. def self.datadir(gem_name) diff --git a/lib/rubygems/commands/list_command.rb b/lib/rubygems/commands/list_command.rb index d9b7a9535e..71b8a93fad 100644 --- a/lib/rubygems/commands/list_command.rb +++ b/lib/rubygems/commands/list_command.rb @@ -3,7 +3,7 @@ require 'rubygems/commands/query_command' ## # An alternate to Gem::Commands::QueryCommand that searches for gems starting -# with the the supplied argument. +# with the supplied argument. class Gem::Commands::ListCommand < Gem::Commands::QueryCommand diff --git a/lib/shell.rb b/lib/shell.rb index 8c91090414..76af3b6f86 100644 --- a/lib/shell.rb +++ b/lib/shell.rb @@ -48,7 +48,7 @@ require "shell/process-controller" # end # end # -# === Temp file creationg with self +# === Temp file creation with self # # This example is identical to the first, except we're using # CommandProcessor#transact. diff --git a/lib/sync.rb b/lib/sync.rb index dc513fc16b..09542d59f9 100644 --- a/lib/sync.rb +++ b/lib/sync.rb @@ -315,7 +315,7 @@ end Synchronizer_m = Sync_m ## -# A class that providesa two-phase lock with a counter. See Sync_m for +# A class that provides two-phase lock with a counter. See Sync_m for # details. class Sync diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb index 18d4fb683d..2161768576 100644 --- a/lib/tmpdir.rb +++ b/lib/tmpdir.rb @@ -39,7 +39,7 @@ class Dir # Dir.mktmpdir creates a temporary directory. # # The directory is created with 0700 permission. - # Application should not change the permission to make the temporary directory accesible from other users. + # Application should not change the permission to make the temporary directory accessible from other users. # # The prefix and suffix of the name of the directory is specified by # the optional first argument, <i>prefix_suffix</i>. |