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 910d97e commit 0cdf1bdCopy full SHA for 0cdf1bd
guides/getting_started.md
@@ -76,15 +76,13 @@ defmodule MyApp do
76
# ...
77
78
def start(_type, _args) do
79
- import Supervisor.Spec, warn: false
80
-
81
# 1. Load the viewport configuration from config
82
main_viewport_config = Application.get_env(:my_app, :viewport)
83
84
# 2. Start the application with the viewport
85
children = [
86
87
- supervisor(Scenic, [viewports: [main_viewport_config]]),
+ {Scenic, [main_viewport_config]},
88
]
89
90
Supervisor.start_link(children, strategy: :one_for_one)
0 commit comments