diff --git a/README.md b/README.md index 74b0b7f..4417193 100644 --- a/README.md +++ b/README.md @@ -560,10 +560,10 @@ generally preferred practice. end ``` -* - Use `true` as the last condition of the `cond` special form when you need a +* + Use `:else` as the last condition of the `cond` special form when you need a clause that always matches. - [[link](#true-as-last-condition)] + [[link](#else-as-last-condition)] ```elixir # not preferred @@ -574,7 +574,7 @@ generally preferred practice. 1 + 3 == 5 -> "Uh, uh" - :else -> + true -> "OK" end @@ -586,7 +586,7 @@ generally preferred practice. 1 + 3 == 5 -> "Uh, uh" - true -> + :else -> "OK" end ```