diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 07:13:09 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 07:13:09 +0000 |
commit | bcd54b6b6315384badbcea0b6d31f5da72369f2d (patch) | |
tree | c5011349f822466acbeff7777e4b0fd6be6bb9a0 /lib/rdoc/code_objects.rb | |
parent | 233eae8fc29b462654dcaa5578f6a7f0af059852 (diff) | |
download | ruby-bcd54b6b6315384badbcea0b6d31f5da72369f2d.tar.gz ruby-bcd54b6b6315384badbcea0b6d31f5da72369f2d.tar.xz ruby-bcd54b6b6315384badbcea0b6d31f5da72369f2d.zip |
Fix 1.9 warnings in RDoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/code_objects.rb')
-rw-r--r-- | lib/rdoc/code_objects.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb index d6c4f1bdb..d68198249 100644 --- a/lib/rdoc/code_objects.rb +++ b/lib/rdoc/code_objects.rb @@ -126,6 +126,7 @@ module RDoc @title = title @@sequence.succ! @sequence = @@sequence.dup + @comment = nil set_comment(comment) end @@ -385,8 +386,8 @@ module RDoc module_name = modules.shift result = find_module_named(module_name) if result - modules.each do |module_name| - result = result.find_module_named(module_name) + modules.each do |name| + result = result.find_module_named(name) break unless result end end |