Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
therealmaxmoon opened this issue Aug 15, 2020 · 0 comments

Comments

@therealmaxmoon
Copy link

therealmaxmoon commented Aug 15, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant