Skip to content

Commit 0cdf1bd

Browse files
authored
Update supervisor config in getting started guide (#338)
1 parent 910d97e commit 0cdf1bd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

guides/getting_started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,13 @@ defmodule MyApp do
7676
# ...
7777

7878
def start(_type, _args) do
79-
import Supervisor.Spec, warn: false
80-
8179
# 1. Load the viewport configuration from config
8280
main_viewport_config = Application.get_env(:my_app, :viewport)
8381

8482
# 2. Start the application with the viewport
8583
children = [
8684
# ...
87-
supervisor(Scenic, [viewports: [main_viewport_config]]),
85+
{Scenic, [main_viewport_config]},
8886
]
8987

9088
Supervisor.start_link(children, strategy: :one_for_one)

0 commit comments

Comments
 (0)