Skip to content

Commit

Permalink
Merge pull request #354 from orisano/patch-1
Browse files Browse the repository at this point in the history
fix typo?
  • Loading branch information
eriknw committed Nov 10, 2016
2 parents 38facbc + 8b0f60f commit a8cd0ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolz/dicttoolz.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def assoc_in(d, keys, value, factory=dict):
>>> assoc_in(purchase, ['order', 'costs'], [0.25, 1.00]) # doctest: +SKIP
{'credit card': '5555-1234-1234-1234',
'name': 'Alice',
'purchase': {'costs': [0.25, 1.00], 'items': ['Apple', 'Orange']}}
'order': {'costs': [0.25, 1.00], 'items': ['Apple', 'Orange']}}
"""
return update_in(d, keys, lambda x: value, value, factory)

Expand Down

0 comments on commit a8cd0ad

Please sign in to comment.