Project

General

Profile

Misc #17872 ยป ruby-doc-syntax_literals-heredocs-extra_word.patch

Remove extra word from Here Documents syntax doc - tj (Thibault Jouan), 05/20/2021 05:25 AM

View differences:

doc/syntax/literals.rdoc
That might span many lines
INDENTED_HEREDOC
Note that the while the closing identifier may be indented, the content is
always treated as if it is flush left. If you indent the content those spaces
will appear in the output.
Note that while the closing identifier may be indented, the content is always
treated as if it is flush left. If you indent the content those spaces will
appear in the output.
To have indented content as well as an indented closing identifier, you can use
a "squiggly" heredoc, which uses a "~" instead of a "-" after <tt><<</tt>:
    (1-1/1)