From 4ef4364f4285dbc932038e20045606466eda5705 Mon Sep 17 00:00:00 2001 From: Travis Cook Date: Fri, 21 Jul 2017 15:32:06 -0700 Subject: [PATCH] [docs] Fix grammar in 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 e01ff38..472c3f9 100644 --- a/docs/guide/purity.rst +++ b/docs/guide/purity.rst @@ -8,7 +8,7 @@ The major problem we have is that one message (underlying implementation: :class through more than one component, and at the same time. If you wanna be safe, you tend to :func:`copy.copy()` everything between two calls to two different components, but that's very expensive. -Instead of that, we chosed the oposite: copies are never made, and you should not modify in place the inputs of your +Instead, we chose the opposite: copies are never made, and you should not modify in place the inputs of your component before yielding them, and that mostly means that you want to recreate dicts and lists before yielding (or returning) them. Numeric values, strings and tuples being immutable in python, modifying a variable of one of those type will already return a different instance.