Skip to content

Commit

Permalink
Improve wording in Getting Started guide (#4369)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarkook authored Feb 8, 2024
1 parent f45c6e4 commit 43ddae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/introduction/Getting Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ end

This module is what we'll be using to query our database shortly. It uses the `Ecto.Repo` module, and the `otp_app` tells Ecto which Elixir application it can look for database configuration in. In this case, we've specified that it is the `:friends` application where Ecto can find that configuration and so Ecto will use the configuration that was set up in `config/config.exs`. Finally, we configure the database `:adapter` to Postgres.

The final piece of configuration is to setup the `Friends.Repo` as a supervisor within the application's supervision tree, which we can do in `lib/friends/application.ex`, inside the `start/2` function:
Finally, the `Friends.Repo` must be started within the application's supervision tree, which we can do in `lib/friends/application.ex`, inside the `start/2` function:

```elixir
def start(_type, _args) do
Expand Down

0 comments on commit 43ddae1

Please sign in to comment.