Skip to content

Commit 1d562ee

Browse files
authored
Update README.md
1 parent 849c92a commit 1d562ee

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

README.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -70,18 +70,9 @@ The same counter as above but using the `Avalonia.FuncUI.Elmish` package:
7070

7171
```f#
7272
module Counter =
73-
74-
type CounterState = {
75-
count : int
76-
}
77-
78-
let init = {
79-
count = 0
80-
}
81-
82-
type Msg =
83-
| Increment
84-
| Decrement
73+
type CounterState = { count : int }
74+
let init = { count = 0 }
75+
type Msg = Increment | Decrement
8576
8677
let update (msg: Msg) (state: CounterState) : CounterState =
8778
match msg with

0 commit comments

Comments
 (0)