Skip to content

Commit

Permalink
[Doc] Fix multiple Magic Comments example
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
kachick authored and nobu committed Mar 13, 2021
1 parent 07ff1f4 commit c7e6914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/syntax/comments.rdoc
Expand Up @@ -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>
Expand Down

0 comments on commit c7e6914

Please sign in to comment.