From 4eac5c0a3248cc34538e0776f233ca16a8c9e90e Mon Sep 17 00:00:00 2001 From: hellerve Date: Tue, 17 Jan 2017 15:35:17 +0100 Subject: [PATCH] fixed typo --- README.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.rst b/README.rst index 746f41d..5bdd18c 100644 --- a/README.rst +++ b/README.rst @@ -50,20 +50,22 @@ A few motivating examples (a more exhaustive list can be found in the ``test`` d # => {"k": [1, [3], 3]} (will create a copy of the data) manipulator.set([{"k": "v"}, - {"k": { - "a": [{"k": 10}, {"k": 11}] - } + { + "k": { + "a": [{"k": 10}, {"k": 11}] + } }], ".k #1 #a .k", 100) # => [{"k": "v"}, {"k": {"a": [{"k": 100}, {"k": 100}]}}] manipulator.update({"k": [1, [2], 3]}, "#k #1 #0", lambda x: x-1) # => {"k": [1, [1], 3]} (in place, use in_place=False to copy) - manipulator.set([{"k": "v"}, - {"k": { - "a": [{"k": 10}, {"k": 11}] - } - }], ".k #1 #a .k", lambda x: x+1) + manipulator.update([{"k": "v"}, + { + "k": { + "a": [{"k": 10}, {"k": 11}] + } + }], ".k #1 #a .k", lambda x: x+1) # => [{"k": "v"}, {"k": {"a": [{"k": 11}, {"k": 12}]}}]