matthewp / robot

🤖 A functional, immutable Finite State Machine library
https://thisrobot.life
BSD 2-Clause "Simplified" License
1.92k stars 88 forks source link

Fix demo code #199

Closed masto closed 1 year ago

masto commented 1 year ago

I don't really know what I'm doing, but I wanted to try out this example to get familiar with robot and I found it necessary to make these changes for the sample code on the home page to compile and function correctly. I don't know if these are real bugs or it's something with my local environment, but I figured I'd offer the PR in case it is helpful.

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: b9c3e89477184f712901ff58c6019c4a4e722b09

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR