Skip to content

Commit f24104f

Browse files
committed
Fix indentation
1 parent 2c57e07 commit f24104f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ Uses [`.addEventListener()`](https://developer.mozilla.org/en-US/docs/Web/API/Ev
5757

5858
```ts
5959
function ButtonClickListener(button: HTMLButtonElement) {
60-
function* initial() {
61-
yield on("click", clicked);
62-
yield listenTo(button, "click");
63-
}
64-
function* clicked() {}
65-
66-
return initial;
60+
function* initial() {
61+
yield on("click", clicked);
62+
yield listenTo(button, "click");
6763
}
64+
function* clicked() {}
65+
66+
return initial;
67+
}
6868

6969
const button = document.createElement('button');
7070
const machine = start(ButtonClickListener.bind(null, button));

0 commit comments

Comments
 (0)