Skip to content

Commit e0ea254

Browse files
committed
fix example of using Func with Reference in the Reference docstring.
1 parent 74d2aef commit e0ea254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

effect/ref.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Reference(object):
2323
Reference is not interchangeable with the *result of* a call to
2424
Reference, since identity matters. If you want to create references in
2525
purely functional code, you can use the :obj:`effect.Func` intent:
26-
`effect.Effect(effect.Func(Reference))`.
26+
`effect.Effect(effect.Func(Reference, initial))`.
2727
"""
2828

2929
# TODO: Add modify_atomic that either uses a lock or a low-level

0 commit comments

Comments
 (0)