From 39341bbfdf584827ff1176b2007dec5a5201d9fb Mon Sep 17 00:00:00 2001 From: Daniel Power Date: Sat, 3 Oct 2020 16:42:34 -0230 Subject: [PATCH] Move function declaration before reference The way the example is currently presented requires that the user have an understanding of how Javascript hoists functions. By moving the function declaration before the function reference, the order of the code becomes more clear to the reader, which I think is valuable here. I think it's more important that this material clearly teach the behavior of Svelte, rather than the nuances of Javascript. --- .../tutorial/04-logic/06-await-blocks/app-a/App.svelte | 6 +++--- .../tutorial/04-logic/06-await-blocks/app-b/App.svelte | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site/content/tutorial/04-logic/06-await-blocks/app-a/App.svelte b/site/content/tutorial/04-logic/06-await-blocks/app-a/App.svelte index 7ac5ca3c9e..ae2acecf8b 100644 --- a/site/content/tutorial/04-logic/06-await-blocks/app-a/App.svelte +++ b/site/content/tutorial/04-logic/06-await-blocks/app-a/App.svelte @@ -1,6 +1,4 @@