Skip to content

Commit

Permalink
Fix var name in README example (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroenvandijk authored Dec 10, 2021
1 parent 573ee0e commit bf62c0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ Dynamic vars with thread-local bindings are also supported:

``` clojure
(def ^:dynamic *x* 1)
(binding [*x* 10] x) ;;=> 10
(binding [*x* 10] (set! x 12) x) ;;=> 12
x ;;=> 1
(binding [*x* 10] *x*) ;;=> 10
(binding [*x* 10] (set! *x* 12) *x*) ;;=> 12
*x* ;;=> 1
```

Creating SCI vars from Clojure can be done using `sci/new-var`:
Expand Down

0 comments on commit bf62c0d

Please sign in to comment.