Skip to content

Commit

Permalink
Update README with latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnout Roemers committed Mar 14, 2023
1 parent 680954a commit 8ac3429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Even if you've lost the reference to it.

Oh, two more things.
If an active state's `:stop` expression has a bug or can't handle its value, you can always force it to close with `close!`.
And if you want to inspect the value of a state, without starting it, there's `deref?`.
And if you want to inspect the value of a state, without starting it, you can use Clojure's `peek` on it.

### Naming and defstate

Expand Down Expand Up @@ -145,7 +145,7 @@ Trying to redefine a `defstate` which is active (i.e. realized) is skipped and y

The `defstate` macro supports metadata on the name symbol.
Note that this metadata is set on the var.
If you want **metadata** on the State object, you can use `:meta` expression inside `state`, or use Clojure's `with-meta` on it.
If you want **metadata** on the State object, you can use `:meta` expression inside `state`, or use Clojure's `alter-meta!` or `reset-meta!` on it.
So a full `defstate` could look like this:

```clj
Expand Down

0 comments on commit 8ac3429

Please sign in to comment.