Skip to content

Commit 26da1f4

Browse files
Construct Origin with Number values (#445)
Construct origin of type PointRec with Number values ( 0.0 ) to align with type definition ``` purescript type PointRec = { x :: Number, y :: Number } ```
1 parent 60d6028 commit 26da1f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

language/Differences-from-Haskell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Objects are constructed with syntax similar to that of JavaScript (and the type
9696

9797
``` purescript
9898
origin :: PointRec
99-
origin = { x: 0, y: 0 }
99+
origin = { x: 0.0 , y: 0.0 }
100100
```
101101

102102
And instead of introducing `x` and `y` accessor functions, `x` and `y` can be read like JavaScript properties:

0 commit comments

Comments
 (0)