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:
parent
07ff1f4b0b
commit
c7e6914b39
Notes:
git
2021-03-13 15:44:55 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue