RosettaCodeData/Task/Here-document/Elixir/here-document-3.ex

12 lines
185 B
Elixir

iex(1)> a=2
2
iex(2)> '''
...(2)> 1 + 1 = #{a}
...(2)> '''
'1 + 1 = 2\n'
iex(3)>
iex(3)> '''2'''
** (SyntaxError) iex:3: heredoc start must be followed by a new line after '''
iex(3)>