@@ -1446,7 +1446,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
14461446 * reads lines using the default record separator global variable `$/`, whose initial value is `"\n"`.
14471447 *
14481448 * ```
1449- * strio = StringIO.new(Text )
1449+ * strio = StringIO.new(TEXT )
14501450 * strio.each {|line| p line }
14511451 * strio.eof? # => true
14521452 * ```
@@ -1467,7 +1467,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
14671467 * reads lines using that string as the record separator:
14681468 *
14691469 * ```
1470- * strio = StringIO.new(Text )
1470+ * strio = StringIO.new(TEXT )
14711471 * strio.each(' ') {|line| p line }
14721472 * ```
14731473 *
@@ -1488,7 +1488,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
14881488 * also limits the size (in characters) of each line to the given limit:
14891489 *
14901490 * ```
1491- * strio = StringIO.new(Text )
1491+ * strio = StringIO.new(TEXT )
14921492 * strio.each(10) {|line| p line }
14931493 * ```
14941494 *
@@ -1511,7 +1511,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
15111511 * honors both:
15121512 *
15131513 * ```
1514- * strio = StringIO.new(Text )
1514+ * strio = StringIO.new(TEXT )
15151515 * strio.each(' ', 10) {|line| p line }
15161516 * ```
15171517 *
@@ -1536,7 +1536,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
15361536 * but in other cases the position may be anywhere (see StringIO#pos):
15371537 *
15381538 * ```
1539- * strio = StringIO.new(Text )
1539+ * strio = StringIO.new(TEXT )
15401540 * strio.pos = 30 # Set stream position to character 30.
15411541 * strio.each {|line| p line }
15421542 * ```
@@ -1554,7 +1554,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
15541554 * see {Special Line Separators}[https://docs.ruby-lang.org/en/master/IO.html#class-IO-label-Special+Line+Separator+Values].
15551555 *
15561556 * ```
1557- * strio = StringIO.new(Text )
1557+ * strio = StringIO.new(TEXT )
15581558 * strio.each('') {|line| p line } # Read as paragraphs (separated by blank lines).
15591559 * ```
15601560 *
@@ -1566,7 +1566,7 @@ strio_readline(int argc, VALUE *argv, VALUE self)
15661566 * ```
15671567 *
15681568 * ```
1569- * strio = StringIO.new(Text )
1569+ * strio = StringIO.new(TEXT )
15701570 * strio.each(nil) {|line| p line } # "Slurp"; read it all.
15711571 * ```
15721572 *
@@ -2094,16 +2094,16 @@ strio_set_encoding_by_bom(VALUE self)
20942094 * And that these constants have been defined:
20952095 *
20962096 * ```
2097- * Text = <<EOT
2097+ * TEXT = <<EOT
20982098 * First line
20992099 * Second line
21002100 *
21012101 * Fourth line
21022102 * Fifth line
21032103 * EOT
21042104 *
2105- * Russian = 'тест'
2106- * Data = "\u9990\u9991\u9992\u9993\u9994"
2105+ * RUSSIAN = 'тест'
2106+ * DATA = "\u9990\u9991\u9992\u9993\u9994"
21072107 * ```
21082108 *
21092109 */
0 commit comments