[ruby/English] Replace HTML5 deprecated tag <tt> with <code>

https://github.com/ruby/English/commit/3712fd6752
This commit is contained in:
ccmywish 2023-02-05 19:33:38 +08:00 committed by git
parent 8a29419b7f
commit b3fd1222c2

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
# Include the English library file in a Ruby script, and you can # Include the English library file in a Ruby script, and you can
# reference the global variables such as <tt>$_</tt> using less # reference the global variables such as <code>$_</code> using less
# cryptic names, listed below. # cryptic names, listed below.
# #
# Without 'English': # Without 'English':
@ -56,11 +56,11 @@ alias $ERROR_INFO $!
alias $ERROR_POSITION $@ alias $ERROR_POSITION $@
# The default separator pattern used by String#split. May be set from # The default separator pattern used by String#split. May be set from
# the command line using the <tt>-F</tt> flag. # the command line using the <code>-F</code> flag.
alias $FS $; alias $FS $;
# The default separator pattern used by String#split. May be set from # The default separator pattern used by String#split. May be set from
# the command line using the <tt>-F</tt> flag. # the command line using the <code>-F</code> flag.
alias $FIELD_SEPARATOR $; alias $FIELD_SEPARATOR $;
# The separator string output between the parameters to methods such # The separator string output between the parameters to methods such
@ -99,37 +99,37 @@ alias $NR $.
# The last line read by Kernel#gets or # The last line read by Kernel#gets or
# Kernel#readline. Many string-related functions in the # Kernel#readline. Many string-related functions in the
# Kernel module operate on <tt>$_</tt> by default. The variable is # Kernel module operate on <code>$_</code> by default. The variable is
# local to the current scope. Thread local. # local to the current scope. Thread local.
alias $LAST_READ_LINE $_ alias $LAST_READ_LINE $_
# The destination of output for Kernel#print # The destination of output for Kernel#print
# and Kernel#printf. The default value is # and Kernel#printf. The default value is
# <tt>$stdout</tt>. # <code>$stdout</code>.
alias $DEFAULT_OUTPUT $> alias $DEFAULT_OUTPUT $>
# An object that provides access to the concatenation # An object that provides access to the concatenation
# of the contents of all the files # of the contents of all the files
# given as command-line arguments, or <tt>$stdin</tt> # given as command-line arguments, or <code>$stdin</code>
# (in the case where there are no # (in the case where there are no
# arguments). <tt>$<</tt> supports methods similar to a # arguments). <code>$<</code> supports methods similar to a
# File object: # File object:
# +inmode+, +close+, # +inmode+, +close+,
# <tt>closed?</tt>, +each+, # <code>closed?</code>, +each+,
# <tt>each_byte</tt>, <tt>each_line</tt>, # <code>each_byte</code>, <code>each_line</code>,
# +eof+, <tt>eof?</tt>, +file+, # +eof+, <code>eof?</code>, +file+,
# +filename+, +fileno+, # +filename+, +fileno+,
# +getc+, +gets+, +lineno+, # +getc+, +gets+, +lineno+,
# <tt>lineno=</tt>, +path+, # <code>lineno=</code>, +path+,
# +pos+, <tt>pos=</tt>, # +pos+, <code>pos=</code>,
# +read+, +readchar+, # +read+, +readchar+,
# +readline+, +readlines+, # +readline+, +readlines+,
# +rewind+, +seek+, +skip+, # +rewind+, +seek+, +skip+,
# +tell+, <tt>to_a</tt>, <tt>to_i</tt>, # +tell+, <code>to_a</code>, <code>to_i</code>,
# <tt>to_io</tt>, <tt>to_s</tt>, along with the # <code>to_io</code>, <code>to_s</code>, along with the
# methods in Enumerable. The method +file+ # methods in Enumerable. The method +file+
# returns a File object for the file currently # returns a File object for the file currently
# being read. This may change as <tt>$<</tt> reads # being read. This may change as <code>$<</code> reads
# through the files on the command line. Read only. # through the files on the command line. Read only.
alias $DEFAULT_INPUT $< alias $DEFAULT_INPUT $<
@ -144,9 +144,9 @@ alias $PROCESS_ID $$
alias $CHILD_STATUS $? alias $CHILD_STATUS $?
# A +MatchData+ object that encapsulates the results of a successful # A +MatchData+ object that encapsulates the results of a successful
# pattern match. The variables <tt>$&</tt>, <tt>$`</tt>, <tt>$'</tt>, # pattern match. The variables <code>$&</code>, <code>$`</code>, <code>$'</code>,
# and <tt>$1</tt> to <tt>$9</tt> are all derived from # and <code>$1</code> to <code>$9</code> are all derived from
# <tt>$~</tt>. Assigning to <tt>$~</tt> changes the values of these # <code>$~</code>. Assigning to <code>$~</code> changes the values of these
# derived variables. This variable is local to the current # derived variables. This variable is local to the current
# scope. # scope.
alias $LAST_MATCH_INFO $~ alias $LAST_MATCH_INFO $~
@ -176,7 +176,7 @@ alias $PREMATCH $`
alias $POSTMATCH $' alias $POSTMATCH $'
# The contents of the highest-numbered group matched in the last # The contents of the highest-numbered group matched in the last
# successful pattern match. Thus, in <tt>"cat" =~ /(c|a)(t|z)/</tt>, # successful pattern match. Thus, in <code>"cat" =~ /(c|a)(t|z)/</code>,
# <tt>$+</tt> will be set to "t". This variable is local to the # <code>$+</code> will be set to "t". This variable is local to the
# current scope. Read only. # current scope. Read only.
alias $LAST_PAREN_MATCH $+ alias $LAST_PAREN_MATCH $+