evancz / elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app
https://guide.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
4.17k stars 738 forks source link

Disparity between docs and examples #119

Closed jimniels closed 4 years ago

jimniels commented 7 years ago

Hello,

I'm just getting started in Elm and ran into a small discrepancy in the documentation I thought I'd point out.

For the second example (02-field.elm), the code looks like this:

model : Model
model =
  Model ""

But in the gitbook docs that same line looks like:

model : Model
model =
  { content = "" }

Being a beginner, I'm not exactly sure what the difference is between these and why you might choose one way of doing it over another. Just figured I'd point it out.

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.