From 28461b36d6ed72c7bfc6d3f6f68ad7ab26fea0a0 Mon Sep 17 00:00:00 2001 From: Alex McLain Date: Sun, 22 Oct 2023 17:48:52 -0700 Subject: [PATCH] Update supervisor config in getting started guide --- guides/getting_started.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/guides/getting_started.md b/guides/getting_started.md index 02d8b81d..587b3417 100644 --- a/guides/getting_started.md +++ b/guides/getting_started.md @@ -76,15 +76,13 @@ defmodule MyApp do # ... def start(_type, _args) do - import Supervisor.Spec, warn: false - # 1. Load the viewport configuration from config main_viewport_config = Application.get_env(:my_app, :viewport) # 2. Start the application with the viewport children = [ # ... - supervisor(Scenic, [viewports: [main_viewport_config]]), + {Scenic, [main_viewport_config]}, ] Supervisor.start_link(children, strategy: :one_for_one)