From 1d562ee04b5a5fd81a526e8e483c058b46391afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josua=20J=C3=A4ger?= Date: Sun, 25 Feb 2024 10:54:38 +0100 Subject: [PATCH] Update README.md --- README.md | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f8e0fcaf..941f53ac 100644 --- a/README.md +++ b/README.md @@ -70,18 +70,9 @@ The same counter as above but using the `Avalonia.FuncUI.Elmish` package: ```f# module Counter = - - type CounterState = { - count : int - } - - let init = { - count = 0 - } - - type Msg = - | Increment - | Decrement + type CounterState = { count : int } + let init = { count = 0 } + type Msg = Increment | Decrement let update (msg: Msg) (state: CounterState) : CounterState = match msg with