Skip to content

Commit 72ff495

Browse files
authored
Change variable names from primes to underscores
Elm 0.18 removed primes in variables names in favour of underscores as outlined here: https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.18.md#no-more-primes This commit is to reflect these changes in the style-guide docs.
1 parent d9f9af0 commit 72ff495

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pages/docs/style-guide.elm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ evaluate boolean =
6060
Not b ->
6161
not (evaluate b)
6262
63-
And b b' ->
64-
evaluate b && evaluate b'
63+
And b b_ ->
64+
evaluate b && evaluate b_
6565
66-
Or b b' ->
67-
evaluate b || evaluate b'
66+
Or b b_ ->
67+
evaluate b || evaluate b_
6868
```
6969
7070
Now imagine one of the cases in `evaluate` becomes drastically more
@@ -80,8 +80,8 @@ homeDirectory = "/root/files"
8080
eval boolean = case boolean of
8181
Literal bool -> bool
8282
Not b -> not (eval b)
83-
And b b' -> eval b && eval b'
84-
Or b b' -> eval b || eval b'
83+
And b b_ -> eval b && eval b_
84+
Or b b_ -> eval b || eval b_
8585
```
8686
8787
We saved vertical lines here, but at the cost of regularity and ease of

0 commit comments

Comments
 (0)