We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9b5ec commit 3bdf5a9Copy full SHA for 3bdf5a9
CHANGELOG.md
@@ -10,7 +10,7 @@ The most exciting change in Elixir v1.18 is type checking of function calls, alo
10
defmodule User do
11
defstruct [:age, :car_choice]
12
13
- def drive(%User{age: age, car_choice: car}, cars_choices) when age >= 18 do
+ def drive(%User{age: age, car_choice: car}, car_choices) when age >= 18 do
14
if car in car_choices do
15
{:ok, car}
16
else
0 commit comments