Skip to content

Commit e361bc5

Browse files
kuldeepaggarwaljosevalim
authored andcommitted
Update the warning note! (elixir-lang#763)
1 parent 746675c commit e361bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

getting-started/modules.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ end
259259

260260
If we save the code above in a file named "concat.ex" and compile it, Elixir will emit the following warning:
261261

262-
concat.ex:7: this clause cannot match because a previous clause at line 2 always matches
262+
concat.ex:7: warning: this clause cannot match because a previous clause at line 2 always matches
263263

264264
The compiler is telling us that invoking the `join` function with two arguments will always choose the first definition of `join` whereas the second one will only be invoked when three arguments are passed:
265265

0 commit comments

Comments
 (0)