summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorKenichi Kamiya <kachick1@gmail.com>2021-03-13 14:15:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-03-13 15:44:34 +0900
commitc7e6914b3947cdf0e9c0d28d1162a084d0138887 (patch)
treed75f8a4d38bd97aa3a2cb52b1cf010184b6281b7 /doc
parent07ff1f4b0b040b594a6fec44d9888395343449c6 (diff)
[Doc] Fix multiple `Magic Comments` example
[ci skip]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4264
Diffstat (limited to 'doc')
-rw-r--r--doc/syntax/comments.rdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/comments.rdoc b/doc/syntax/comments.rdoc
index 650d13c2dc..b361e077b6 100644
--- a/doc/syntax/comments.rdoc
+++ b/doc/syntax/comments.rdoc
@@ -58,7 +58,7 @@ Magic comments may consist of a single directive (as in the example above).
Alternatively, multiple directives may appear on the same line if separated by ";"
and wrapped between "-*-" (see Emacs' {file variables}[https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html]).
- # emacs-compatible; -*- coding: big5; mode: ruby -*-
+ # emacs-compatible; -*- coding: big5; mode: ruby; frozen_string_literal: true -*-
p 'hello'.frozen? # => true
p 'hello'.encoding # => #<Encoding:Big5>