Skip to content

Commit 3f2d3bf

Browse files
authored
Document that multi-line strings are heredocs (#14319)
1 parent 6d9b404 commit 3f2d3bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/pages/references/syntax-reference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To learn more about all Unicode characters allowed in atom, see the [Unicode syn
4343

4444
Single-line strings in Elixir are written between double-quotes, such as `"foo"`. Any double-quote inside the string must be escaped with `\ `. Strings support Unicode characters and are stored as UTF-8 encoded binaries.
4545

46-
Multi-line strings in Elixir are written with three double-quotes, and can have unescaped quotes within them. The resulting string will end with a newline. The indentation of the last `"""` is used to strip indentation from the inner string. For example:
46+
Multi-line strings in Elixir are called heredocs. They are written with three double-quotes, and can have unescaped quotes within them. The resulting string will end with a newline. The indentation of the last `"""` is used to strip indentation from the inner string. For example:
4747

4848
```elixir
4949
iex> test = """

0 commit comments

Comments
 (0)