[前][次][番号順一覧][スレッド一覧]

ruby-changes:63198

From: Nobuyoshi <ko1@a...>
Date: Tue, 29 Sep 2020 15:28:52 +0900 (JST)
Subject: [ruby-changes:63198] dcb705ace7 (master): doc/syntax/literals.rdoc: explain `#@@foo` too [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=dcb705ace7

From dcb705ace7f1152d185d42ed2db4a6d44749961a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 29 Sep 2020 15:28:09 +0900
Subject: doc/syntax/literals.rdoc: explain `#@@foo` too [ci skip]


diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index c871d27..f490972 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -143,8 +143,9 @@ Double-quote strings allow interpolation of other values using https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L143
 Any expression may be placed inside the interpolated section, but it's best to
 keep the expression small for readability.
 
-You can also use <tt>#@foo</tt> and <tt>#$foo</tt> as a shorthand for,
-respentively, <tt>#{ @foo }</tt> and <tt>#{ $foo }</tt>.
+You can also use <tt>#@foo</tt>, <tt>#@@foo</tt> and <tt>#$foo</tt> as a
+shorthand for, respentively, <tt>#{ @foo }</tt>, <tt>#{ @@foo }</tt> and
+<tt>#{ $foo }</tt>.
 
 Interpolation may be disabled by escaping the "#" character or using
 single-quote strings:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]