Fix erroneous code snippet in documentation (#9963)

The return value in the code example is the opposite of what the code
would actually return, making the example misleading.
This commit is contained in:
Mikael Muszynski
2020-04-25 18:12:20 +02:00
committed by GitHub
parent bdb5072925
commit 7c19db6727
+1 -1
View File
@@ -309,7 +309,7 @@ iex> case "hello" do
...> _anything_else ->
...> :failed
...> end
:worked
:failed
```
In many cases, we can take advantage of this. In the code above, we used `tuple_size/1` to both check that the given value is a tuple *and* check its size (instead of using `is_tuple(something) and tuple_size(something) == 2`).