Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Need documentation improvement for backslash function #147

Open
ssurana2 opened this issue Dec 19, 2016 · 3 comments
Open

Need documentation improvement for backslash function #147

ssurana2 opened this issue Dec 19, 2016 · 3 comments

Comments

@ssurana2
Copy link

Hi,

It is just a minor request to update the documentation for backslash function. I started learning Elm today and got stuck at the following example provided in the Core Language section of the docs

image

I started the elm-repl cli on my system and when I tried to execute the function I was getting the following error

image

Initially I was not able to understand what exactly is the reason, because the compiler was also not clearly letting me know what am I doing wrong. I was able to fix it by adding some whitespace after | in the next line.

The documentation is missing the point of adding a whitespace after | symbol when using backslash (\) for continuing function's code in second line and also why an extra space is even required there?

I am using Elm 0.18.0 on MacOS Sierra

@process-bot
Copy link

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.

@rtfeldman
Copy link

Someone else commented on this elsewhere.

@jasonpeacock
Copy link

This looks like it was resolved here?

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

No branches or pull requests

4 participants