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
Copy file name to clipboardExpand all lines: getting-started/modules.markdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -259,7 +259,7 @@ end
259
259
260
260
If we save the code above in a file named "concat.ex" and compile it, Elixir will emit the following warning:
261
261
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
263
263
264
264
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:
0 commit comments