summaryrefslogtreecommitdiff
path: root/lib/rdoc/rdoc.rb
diff options
context:
space:
mode:
authorStan Lo <[email protected]>2024-07-31 15:36:37 +0100
committergit <[email protected]>2024-07-31 14:36:41 +0000
commit27c22f822af49e7008b7c9ff75b971d984975e6e (patch)
treef208457206bef6dfa47dd0ed40f7143e340b9e1e /lib/rdoc/rdoc.rb
parent12a5400a8846ed05284b4360faeae72e49e55f93 (diff)
[ruby/rdoc] Drop unnecessary `file_name` parameter from `Parser.for`
method. (https://github.com/ruby/rdoc/pull/1135) * Unify top_level creation in tests * Remove unnecessary file_name param from Parser.for It should be always the same as the top_level's absolute_name, so there's no point of taking it as a separate parameter. https://github.com/ruby/rdoc/commit/97c497dfbb
Diffstat (limited to 'lib/rdoc/rdoc.rb')
-rw-r--r--lib/rdoc/rdoc.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index 2da6d9b575..e1b961b124 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -356,7 +356,7 @@ option)
top_level = @store.add_file filename, relative_name: relative_path.to_s
- parser = RDoc::Parser.for top_level, filename, content, @options, @stats
+ parser = RDoc::Parser.for top_level, content, @options, @stats
return unless parser