[ruby/rdoc] Fix links in docs

www.ruby-lang.org without the leading https:// will generate an
incorrect link because it will be treated as a relative link.

https://github.com/ruby/rdoc/commit/28f32149b6
This commit is contained in:
Peter Zhu 2022-04-14 13:11:57 -04:00 committed by git
parent 307cb57ba6
commit 92614111c0

View File

@ -391,16 +391,16 @@
# #
# * The \ must be doubled if not followed by white space: \\. # * The \ must be doubled if not followed by white space: \\.
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space. # * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
# * This is a link to {ruby-lang}[www.ruby-lang.org]. # * This is a link to {ruby-lang}[https://www.ruby-lang.org].
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org]. # * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org].
# * This will not be linked to \RDoc::RDoc#document # * This will not be linked to \RDoc::RDoc#document
# #
# generates: # generates:
# #
# * The \ must be doubled if not followed by white space: \\. # * The \ must be doubled if not followed by white space: \\.
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space. # * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
# * This is a link to {ruby-lang}[www.ruby-lang.org] # * This is a link to {ruby-lang}[https://www.ruby-lang.org]
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org] # * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org]
# * This will not be linked to \RDoc::RDoc#document # * This will not be linked to \RDoc::RDoc#document
# #
# Inside \<tt> tags, more precisely, leading backslashes are removed only if # Inside \<tt> tags, more precisely, leading backslashes are removed only if