Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8166828

Browse files
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]>
1 parent e501877 commit 8166828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/modules-and-functions.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ iex> String.length("hello")
1212
5
1313
```
1414

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):
1616

1717
```elixir
1818
iex> defmodule Math do

0 commit comments

Comments
 (0)