Skip to content

Commit 1846259

Browse files
kuldeepaggarwaljosevalim
authored andcommitted
Explicitly mention double-quotes for Heredocs (elixir-lang#772)
- update warning message of undefined module attribute
1 parent a78c443 commit 1846259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getting-started/module-attributes.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ defmodule Math do
5757
end
5858
```
5959

60-
Elixir promotes the use of markdown with heredocs to write readable documentation. Heredocs are multiline strings, they start and end with triple quotes, keeping the formatting of the inner text. We can access the documentation of any compiled module directly from IEx:
60+
Elixir promotes the use of markdown with heredocs to write readable documentation. Heredocs are multiline strings, they start and end with triple double-quotes, keeping the formatting of the inner text. We can access the documentation of any compiled module directly from IEx:
6161

6262
```bash
6363
$ elixirc math.ex
@@ -96,7 +96,7 @@ Trying to access an attribute that was not defined will print a warning:
9696
defmodule MyServer do
9797
@unknown
9898
end
99-
warning: undefined module attribute @unknown, please remove access to @unknown or explicitly set it to nil before access
99+
warning: undefined module attribute @unknown, please remove access to @unknown or explicitly set it before access
100100
```
101101

102102
Finally, attributes can also be read inside functions:

0 commit comments

Comments
 (0)