mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/{rake,rdoc,rss}/*, test/rexml/test_listener.rb: [DOC] Fix typos
by @dvsuresh [Fixes GH-486] https://github.com/ruby/ruby/pull/486 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e5eb6e9a3b
commit
2c5dcdf0b4
4 changed files with 5 additions and 5 deletions
|
@ -80,7 +80,7 @@ module Rake
|
|||
#
|
||||
# When inheriting from the LinkedList class, you should implement
|
||||
# a type specific Empty class as well. Make sure you set the class
|
||||
# instance variable @parent to the assocated list class (this
|
||||
# instance variable @parent to the associated list class (this
|
||||
# allows conj, cons and make to work polymorphically).
|
||||
class EmptyLinkedList < LinkedList
|
||||
@parent = LinkedList
|
||||
|
|
|
@ -144,9 +144,9 @@ def next_token # :nodoc:
|
|||
# call filter, part_out is output(Part object)
|
||||
part_out = @tree.filter[@in_part].call(part)
|
||||
|
||||
if @tree.filter[@in_part].mode == :rd # if output is RD formated
|
||||
if @tree.filter[@in_part].mode == :rd # if output is RD formatted
|
||||
subtree = parse_subtree(part_out.to_a)
|
||||
else # if output is target formated
|
||||
else # if output is target formatted
|
||||
basename = TMPFILE.join('.')
|
||||
TMPFILE[-1] += 1
|
||||
tmpfile = open(@tree.tmp_dir + "/" + basename + ".#{@in_part}", "w")
|
||||
|
|
|
@ -105,7 +105,7 @@ module RSS
|
|||
end
|
||||
|
||||
# Some tags must only exist a specific number of times in a given RSS feed.
|
||||
# If a feed has too many occurances of one of these tags, a TooMuchTagError
|
||||
# If a feed has too many occurrences of one of these tags, a TooMuchTagError
|
||||
# will be raised.
|
||||
class TooMuchTagError < InvalidRSSError
|
||||
attr_reader :tag, :parent
|
||||
|
|
|
@ -63,7 +63,7 @@ class BaseTester < Test::Unit::TestCase
|
|||
@listener.parse( t7 ).unpack("C*").inspect, "CR" )
|
||||
end
|
||||
|
||||
# The accent bug, and the code that exibits the bug, was contributed by
|
||||
# The accent bug, and the code that exhibits the bug, was contributed by
|
||||
# Guilhem Vellut
|
||||
class AccentListener
|
||||
def tag_start(name,attributes)
|
||||
|
|
Loading…
Add table
Reference in a new issue