Skip to content

Commit 06bca95

Browse files
authored
Merge pull request #659 from stomar/ri-alias-for-comment
Improve language in "alias for" comment for ri
2 parents 9b826f7 + b836c33 commit 06bca95

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/rdoc/ri/driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def render_method_comment out, method, alias_for = nil# :nodoc:
14681468
out << method.comment
14691469
end
14701470
out << RDoc::Markup::BlankLine.new
1471-
out << RDoc::Markup::Paragraph.new("(this method is alias for #{alias_for.full_name})")
1471+
out << RDoc::Markup::Paragraph.new("(This method is an alias for #{alias_for.full_name}.)")
14721472
out << RDoc::Markup::BlankLine.new
14731473
out << alias_for.comment
14741474
out << RDoc::Markup::BlankLine.new

test/test_rdoc_ri_driver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def test_add_method_that_is_alias_for_original
260260
para('alias comment'),
261261
blank_line,
262262
blank_line,
263-
para('(this method is alias for Qux#original)'),
263+
para('(This method is an alias for Qux#original.)'),
264264
blank_line,
265265
para('original comment'),
266266
blank_line,

0 commit comments

Comments
 (0)