Skip to content

Commit b4883d5

Browse files
anuragpeshnescouten
authored andcommitted
minor change for Elixir > 1.5.0 (#203)
minor syntax change to keep up with new Elixir version
1 parent 35d6421 commit b4883d5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/tutorial.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ defmodule Blog do
5858
import Supervisor.Spec, warn: false
5959

6060
children = [
61-
worker(Blog.Repo, [])
61+
Blog.Repo,
6262
]
6363

6464
# See http://elixir-lang.org/docs/stable/elixir/Supervisor.html
@@ -69,6 +69,15 @@ defmodule Blog do
6969
end
7070
```
7171

72+
If `Elixir < 1.5.0`:
73+
```elixir
74+
...
75+
children = [
76+
worker(Blog.Repo, [])
77+
]
78+
...
79+
```
80+
7281
Run `mix ecto.create`. Verify that the SQLite database has been created at `blog.sqlite3` or wherever you have configured your database to be written.
7382

7483
## Ecto Models

0 commit comments

Comments
 (0)