Skip to content

Commit 28f3214

Browse files
committed
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.
1 parent 32aca21 commit 28f3214

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rdoc/markup.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -391,16 +391,16 @@
391391
#
392392
# * The \ must be doubled if not followed by white space: \\.
393393
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
394-
# * This is a link to {ruby-lang}[www.ruby-lang.org].
395-
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org].
394+
# * This is a link to {ruby-lang}[https://www.ruby-lang.org].
395+
# * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org].
396396
# * This will not be linked to \RDoc::RDoc#document
397397
#
398398
# generates:
399399
#
400400
# * The \ must be doubled if not followed by white space: \\.
401401
# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
402-
# * This is a link to {ruby-lang}[www.ruby-lang.org]
403-
# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org]
402+
# * This is a link to {ruby-lang}[https://www.ruby-lang.org]
403+
# * This is not a link, however: \{ruby-lang.org}[https://www.ruby-lang.org]
404404
# * This will not be linked to \RDoc::RDoc#document
405405
#
406406
# Inside \<tt> tags, more precisely, leading backslashes are removed only if

0 commit comments

Comments
 (0)