From 1399bbe733ba17bb102d16183ff8ef38a02f6177 Mon Sep 17 00:00:00 2001 From: Romain Dorgueil Date: Sat, 22 Apr 2017 18:29:48 +0200 Subject: [PATCH] Update purity.rst --- docs/guide/purity.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/purity.rst b/docs/guide/purity.rst index cf9d47f..05784c5 100644 --- a/docs/guide/purity.rst +++ b/docs/guide/purity.rst @@ -82,7 +82,7 @@ For example, doing the following may cause unexpected problems: 'foo': compute_something() }) # Still bad! Don't mutate the dict! - d['bar']: compute_anotherthing() + d['bar'] = compute_anotherthing() return d The problem is easy to understand: as **Bonobo** won't make copies of your dict, the same dict will be passed along the