Skip to content

Commit cdefc49

Browse files
Corrected in example code
1 parent a2ba0e1 commit cdefc49

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,7 @@ encodePoint point =
162162
y =
163163
[ ( "y", Encode.float point.y ) ]
164164
in
165-
object <|
166-
x
167-
++ y
165+
object <| x ++ y
168166
```
169167

170168
which contains an Elm type for the `color` and `point` definitions along with

examples/example-output-elm-code/Domain/Circle.elm

+1-4
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,4 @@ encodeRoot root =
7878
radius =
7979
[ ( "radius", Encode.float root.radius ) ]
8080
in
81-
object <|
82-
center
83-
++ color
84-
++ radius
81+
object <| center ++ color ++ radius

examples/example-output-elm-code/Domain/Definitions.elm

+1-3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,4 @@ encodePoint point =
101101
y =
102102
[ ( "y", Encode.float point.y ) ]
103103
in
104-
object <|
105-
x
106-
++ y
104+
object <| x ++ y

0 commit comments

Comments
 (0)