Project

General

Profile

Actions

Bug #8766

closed

RDoc documentation bug: Symbol literal

Added by sawa (Tsuyoshi Sawada) over 10 years ago. Updated over 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.0
[ruby-core:56514]

Description

RDoc page http://www.ruby-doc.org/core-2.0/doc/syntax/literals_rdoc.html#label-Symbols has a description and an example:

Like strings, a single-quote may be used to disable interpolation:

:"my_symbol#{1 + 1}" #=> :"my_symbol\#{1 + 1}"

Whereas the text mentions single quote, the example has double quotes.

Actions

Also available in: Atom PDF

Like0
Like0