diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-04 09:37:38 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-04 09:37:38 +0000 |
commit | e6c1752137349537c72f4438d34c990b26d0c71d (patch) | |
tree | dcaf4183b65972648531083adbd167bfd1274d38 /lib/rexml | |
parent | 106e48e5d86d20a4a288fd432d973ed69874b6d5 (diff) |
* lib/rdoc.rb: massive spelling correction patch from Evan Farrar
<evanfarrar at gmail.com> in [ruby-doc:1382] applied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/attlistdecl.rb | 2 | ||||
-rw-r--r-- | lib/rexml/document.rb | 2 | ||||
-rw-r--r-- | lib/rexml/element.rb | 6 | ||||
-rw-r--r-- | lib/rexml/formatters/pretty.rb | 2 | ||||
-rw-r--r-- | lib/rexml/functions.rb | 2 | ||||
-rw-r--r-- | lib/rexml/text.rb | 2 | ||||
-rw-r--r-- | lib/rexml/xpath.rb | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/lib/rexml/attlistdecl.rb b/lib/rexml/attlistdecl.rb index d4b5c38af6..ef4721b5ce 100644 --- a/lib/rexml/attlistdecl.rb +++ b/lib/rexml/attlistdecl.rb @@ -44,7 +44,7 @@ module REXML @pairs.keys.include? key end - # Itterate over the key/value pairs: + # Iterate over the key/value pairs: # attlist_decl.each { |attribute_name, attribute_value| ... } def each(&block) @pairs.each(&block) diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb index f09aa2bc1c..029c042295 100644 --- a/lib/rexml/document.rb +++ b/lib/rexml/document.rb @@ -147,7 +147,7 @@ module REXML # A controversial point is whether Document should always write the XML # declaration (<?xml version='1.0'?>) whether or not one is given by the # user (or source document). REXML does not write one if one was not - # specified, because it adds unneccessary bandwidth to applications such + # specified, because it adds unnecessary bandwidth to applications such # as XML-RPC. # # See also the classes in the rexml/formatters package for the proper way diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb index ecd10de965..a1c01e7de7 100644 --- a/lib/rexml/element.rb +++ b/lib/rexml/element.rb @@ -360,7 +360,7 @@ module REXML # Iterates through the children, yielding for each Element that # has a particular text set. # text:: - # the text to search for. If nil, or not supplied, will itterate + # the text to search for. If nil, or not supplied, will iterate # over all +Element+ children that contain at least one +Text+ node. # max:: # (optional) causes this method to return after yielding @@ -1003,7 +1003,7 @@ module REXML end alias :size :length - # Itterates over the attributes of an Element. Yields actual Attribute + # Iterates over the attributes of an Element. Yields actual Attribute # nodes, not String values. # # doc = Document.new '<a x="1" y="2"/>' @@ -1020,7 +1020,7 @@ module REXML end end - # Itterates over each attribute of an Element, yielding the expanded name + # Iterates over each attribute of an Element, yielding the expanded name # and value as a pair of Strings. # # doc = Document.new '<a x="1" y="2"/>' diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb index 3666eddc96..296e607687 100644 --- a/lib/rexml/formatters/pretty.rb +++ b/lib/rexml/formatters/pretty.rb @@ -126,7 +126,7 @@ module REXML end def wrap(string, width) - # Recursivly wrap string at width. + # Recursively wrap string at width. return string if string.length <= width place = string.rindex(' ', width) # Position in string with last ' ' before cutoff return string[0,place] + "\n" + wrap(string[place+1..-1], width) diff --git a/lib/rexml/functions.rb b/lib/rexml/functions.rb index b3c89877e5..fc9c4701c4 100644 --- a/lib/rexml/functions.rb +++ b/lib/rexml/functions.rb @@ -235,7 +235,7 @@ module REXML # from string then we ignore the second & # subsequent mappings # - # if a charactcer maps to nil then we delete it + # if a character maps to nil then we delete it # in the output. This happens if the from # string is longer than the to string # diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 8bc87dbf32..281b87890b 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -261,7 +261,7 @@ module REXML end def wrap(string, width, addnewline=false) - # Recursivly wrap string at width. + # Recursively wrap string at width. return string if string.length <= width place = string.rindex(' ', width) # Position in string with last ' ' before cutoff if addnewline then diff --git a/lib/rexml/xpath.rb b/lib/rexml/xpath.rb index 939399e283..e8813efd3e 100644 --- a/lib/rexml/xpath.rb +++ b/lib/rexml/xpath.rb @@ -30,7 +30,7 @@ module REXML parser.parse(path, element).flatten[0] end - # Itterates over nodes that match the given path, calling the supplied + # Iterates over nodes that match the given path, calling the supplied # block with the match. # element:: # The context element |