elm / elm-lang.org

Server and client code for the Elm website.
http://elm-lang.org/
BSD 3-Clause "New" or "Revised" License
1.99k stars 366 forks source link

The preview of an example is not the code which was mentioned on the website #851

Open therealmaxmoon opened 4 years ago

therealmaxmoon commented 4 years ago

If a newbie reads the first quick example on the website (https://guide.elm-lang.org/) he/she/they might understand most of it (if programming is not a new thing), but after clicking the link to the preview the code looks slightly different.

It's not a biggy, but this is a bit confusing if you are completely new to elm.

EDIT: The example of the preview repeats in the tutorial (https://guide.elm-lang.org/architecture/buttons.html), but it differs from the code from the first page.

EDIT2: Parts of the code can be removed and it will still work. Why is this possible? Example: view : Model -> Html Msg or code like this: viewInput : String -> String -> String -> (String -> msg) -> Html msg from the form example