1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[Doc] Fix multiple Magic Comments example

[ci skip]
This commit is contained in:
Kenichi Kamiya 2021-03-13 14:15:36 +09:00 committed by Nobuyoshi Nakada
parent 07ff1f4b0b
commit c7e6914b39
Notes: git 2021-03-13 15:44:55 +09:00

View file

@ -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>