ruby-changes:65466
From: Kenichi <ko1@a...>
Date: Sat, 13 Mar 2021 15:44:49 +0900 (JST)
Subject: [ruby-changes:65466] c7e6914b39 (master): [Doc] Fix multiple `Magic Comments` example
https://git.ruby-lang.org/ruby.git/commit/?id=c7e6914b39 From c7e6914b3947cdf0e9c0d28d1162a084d0138887 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya <kachick1@g...> Date: Sat, 13 Mar 2021 14:15:36 +0900 Subject: [Doc] Fix multiple `Magic Comments` example [ci skip] --- doc/syntax/comments.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/syntax/comments.rdoc b/doc/syntax/comments.rdoc index 650d13c..b361e07 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). https://github.com/ruby/ruby/blob/trunk/doc/syntax/comments.rdoc#L58 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> -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/