Browse files

Typos.

  • Loading branch information...
1 parent 9a97f62 commit b5b40eadc2f51ad5d7bd02c2184cae5f68db0480 @rtlechow committed Jan 29, 2011
View
4 lib/rdoc/class_module.rb
@@ -151,7 +151,7 @@ def find_ancestor_local_symbol symbol
end
##
- # Finds a class or module with +name+ in this namespace or its descendents
+ # Finds a class or module with +name+ in this namespace or its descendants
def find_class_named name
return self if full_name == name
@@ -308,7 +308,7 @@ def path
##
# Name to use to generate the url:
# modules and classes that are aliases for another
- # module or classe return the name of the latter.
+ # module or class return the name of the latter.
def name_for_path
is_alias_for ? is_alias_for.full_name : full_name
View
2 lib/rdoc/generator.rb
@@ -22,7 +22,7 @@
# use RDoc::Options#option_parser to add command-line options to the +rdoc+
# tool. See OptionParser for details on how to add options.
#
-# You can extend the RDoc::Options instance with additional accesors for your
+# You can extend the RDoc::Options instance with additional accessors for your
# generator.
#
# = Generator Instantiation
View
2 lib/rdoc/markup.rb
@@ -483,7 +483,7 @@
# [+:include:+ _filename_]
# Include the contents of the named file at this point. This directive
# must appear alone on one line, possibly preceded by spaces. In this
-# position, it can be escapd with a \ in front of the first colon.
+# position, it can be escaped with a \ in front of the first colon.
#
# The file will be searched for in the directories listed by the +--include+
# option, or in the current directory by default. The contents of the file
View
2 lib/rdoc/markup/heading.rb
@@ -4,7 +4,7 @@
class RDoc::Markup::Heading < Struct.new :level, :text
##
- # Calls #accept_heading on +wisitor+
+ # Calls #accept_heading on +visitor+
def accept visitor
visitor.accept_heading self
View
2 lib/rdoc/markup/inline.rb
@@ -29,7 +29,7 @@ def self.bitmap_for(name)
end
##
- # Returns a string reperesentation of +bitmap+
+ # Returns a string representation of +bitmap+
def self.as_string(bitmap)
return "none" if bitmap.zero?
View
2 lib/rdoc/markup/parser.rb
@@ -321,7 +321,7 @@ def parse parent, indent = 0
next
end
- # indentation change: break or verbattim
+ # indentation change: break or verbatim
if column < indent then
unget
break
View
2 lib/rdoc/markup/to_html.rb
@@ -130,7 +130,7 @@ def handle_special_HYPERLINK(special)
end
##
- # Here's a hypedlink where the label is different to the URL
+ # Here's a hyperlink where the label is different to the URL
# <label>[url] or {long label}[url]
def handle_special_TIDYLINK(special)
View
6 lib/rdoc/markup/to_html_crossref.rb
@@ -34,10 +34,10 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
# A::B::C.meth
#{CLASS_REGEXP_STR}(?:[.#]|::)#{METHOD_REGEXP_STR}
- # Stand-alone method (preceeded by a #)
+ # Stand-alone method (preceded by a #)
| \\?\##{METHOD_REGEXP_STR}
- # Stand-alone method (preceeded by ::)
+ # Stand-alone method (preceded by ::)
| ::#{METHOD_REGEXP_STR}
# A::B::C
@@ -51,7 +51,7 @@ class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
# In order that words like "can't" not
# be flagged as potential cross-references, only
# flag potential class cross-references if the character
- # after the cross-referece is a space, sentence
+ # after the cross-reference is a space, sentence
# punctuation, tag start character, or attribute
# marker.
| #{CLASS_REGEXP_STR}(?=[\s\)\.\?\!\,\;<\000]|\z)
View
2 lib/rdoc/markup/to_rdoc.rb
@@ -217,7 +217,7 @@ def end_accepting
end
##
- # Removes preceeding \\ from the suppressed crossref +special+
+ # Removes preceding \\ from the suppressed crossref +special+
def handle_special_SUPPRESSED_CROSSREF special
text = special.text
View
2 lib/rdoc/parser.rb
@@ -45,7 +45,7 @@ class RDoc::Parser
class << self
##
- # A Hash that maps file exetensions regular expressions to parsers that
+ # A Hash that maps file extensions regular expressions to parsers that
# will consume them.
#
# Use parse_files_matching to register a parser's file extensions.
View
2 lib/rdoc/parser/c.rb
@@ -71,7 +71,7 @@
# Documentation for the named attribute.
#
# [call-seq: <i>text up to an empty line</i>]
-# Because C source doesn't give descripive names to Ruby-level parameters,
+# Because C source doesn't give descriptive names to Ruby-level parameters,
# you need to document the calling sequence explicitly
#
# In addition, RDoc assumes by default that the C method implementing a
View
2 lib/rdoc/stats.rb
@@ -411,7 +411,7 @@ def summary
end
##
- # Determines which parametecs in +method+ were not documented. Returns a
+ # Determines which parameters in +method+ were not documented. Returns a
# total parameter count and an Array of undocumented methods.
def undoc_params method
View
2 test/test_rdoc_options.rb
@@ -17,7 +17,7 @@ def teardown
end
def test_check_files
- skip "assumes UNIX permition model" if /mswin|mingw/ =~ RUBY_PLATFORM
+ skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
out, err = capture_io do
Dir.mktmpdir do |dir|
Dir.chdir dir do
View
4 test/test_rdoc_parser_ruby.rb
@@ -1144,7 +1144,7 @@ def test_parse_meta_method_block
content = <<-CONTENT
inline(:my_method) do |*args|
- "this method is causes z to disapear"
+ "this method causes z to disappear"
end
CONTENT
@@ -1986,7 +1986,7 @@ class C
# my method
inline(:my_method) do |*args|
- "this method used to cause z to disapear"
+ "this method used to cause z to disappear"
end
def z
View
2 test/test_rdoc_rdoc.rb
@@ -47,7 +47,7 @@ def test_normalized_file_list_not_modified
assert_empty files
end
- def test_remove_unparsable
+ def test_remove_unparseable
file_list = %w[
blah.class
blah.eps

0 comments on commit b5b40ea

Please sign in to comment.