Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix docs
Browse files Browse the repository at this point in the history
vchuravy committed Aug 24, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 51c7ef4 commit 8bcaf3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/src/base/scopedvalues.md
Original file line number Diff line number Diff line change
@@ -143,7 +143,7 @@ const sval_dict = ScopedValue(Dict())
# it, unshare the values explicitly. In this example we use `merge`
# to unshare the state of the dictonary in parent scope.
@sync begin
scoped(sval_dict => merge(sval_dict, Dict(:a => 10))) do
scoped(sval_dict => merge(sval_dict[], Dict(:a => 10))) do
@spawn @show sval_dict[][:a]
end
@spawn sval_dict[][:a] = 3 # Not a race since they are unshared.

0 comments on commit 8bcaf3a

Please sign in to comment.