From 34cbf6b6b4cc4f0b5180595e4953ec57abffefa1 Mon Sep 17 00:00:00 2001 From: Nathan Marz Date: Thu, 26 Feb 2015 15:31:45 -0500 Subject: [PATCH] fix typo in readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f03163..b59e5eb 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ user> (update [ALL (val-selector-one :b) :a even?] [{:b 3, :a 1} {:b -10, :a -8} {:b 10, :a 14} {:a 3}] ``` -The update function receives as argumnets all the collected values followed by the navigated to value. So in this case `+` receives the value of the :b key followed by the value of the :a key, and the update is performed to :a's value. +The update function receives as arguments all the collected values followed by the navigated to value. So in this case `+` receives the value of the :b key followed by the value of the :a key, and the update is performed to :a's value. The three built-in ways for collecting values are `VAL`, `val-selector`, and `val-selector-one`. `VAL` just adds whatever element it's currently on to the value list, while `val-selector` and `val-selector-one` take in a selector to navigate to the desired value. `val-selector` works just like `select` by finding a sequence of values, while `val-selector-one` expects to only navigate to a single value.