From 2aa5085dbe255da922ed40bdca66c85df85e49c2 Mon Sep 17 00:00:00 2001 From: Y0hy0h Date: Thu, 16 Jan 2020 16:39:21 +0100 Subject: [PATCH] Distinguish `main` function from `view` Talking about the `main` function determining what gets shown on the screen provokes confusing it with the `view` function. Rephrase to distinguish `main` as the description of how the application is built. --- book/architecture/buttons.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/architecture/buttons.md b/book/architecture/buttons.md index e493a954..fbc5b96e 100644 --- a/book/architecture/buttons.md +++ b/book/architecture/buttons.md @@ -62,7 +62,7 @@ Now that you have poked around the code a little bit, you may have some question ## Main -The `main` value is special in Elm. It describes what gets shown on screen. In this case, we are going to initialize our application with the `init` value, the `view` function is going to show everything on screen, and user input is going to be fed into the `update` function. Think of this as the high-level description of our program. +The `main` value is special in Elm. It describes the pieces needed to run a program. In this case, we are going to initialize our application with the `init` value, the `view` function is going to show everything on screen, and user input is going to be fed into the `update` function. Think of this as the high-level description of our program. ## Model