You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mention name casing rules for modules and functions (elixir-lang#1624)
* Mention name casing rules for modules and functions
It might be convenient to immediately notify the readers of this guide that modules and functions must be capitalized correctly.
* Update getting-started/modules-and-functions.markdown
Co-authored-by: José Valim <[email protected]>
Copy file name to clipboardExpand all lines: getting-started/modules-and-functions.markdown
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ iex> String.length("hello")
12
12
5
13
13
```
14
14
15
-
In order to create our own modules in Elixir, we use the `defmodule` macro. We use the `def` macro to define functions in that module:
15
+
In order to create our own modules in Elixir, we use the `defmodule` macro. The first letter of the module must be in uppercase. We use the `def` macro to define functions in that module. The first letter of every function must be in lowercase (or underscore):
0 commit comments