Skip to content

Commit

Permalink
fix small typo error in sci/binding (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiejunhu authored Sep 2, 2024
1 parent f766255 commit ab598ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ These dynamic SCI vars can be bound from Clojure using `sci/binding`:

``` clojure
(def x (sci/new-dynamic-var 'x 10))
(sci/binding [x 11] (sci/eval-string "(inc *x*)" {:namespaces {'user {'*x* x}}})) ;;=> 11
(sci/binding [x 11] (sci/eval-string "(inc *x*)" {:namespaces {'user {'*x* x}}})) ;;=> 12
```

Notice that you cannot set _host_ dynamic variables _from your SCI scripts_ - `binding` will only work
Expand Down

0 comments on commit ab598ff

Please sign in to comment.