From a0273ae8fb0c86623564c7794d64fdb7316beb82 Mon Sep 17 00:00:00 2001
From: Daniel De Aguiar <ddeaguiar@pointslope.com>
Date: Thu, 7 Jul 2016 13:28:08 -0400
Subject: [PATCH] Corrected bug in second 'Context' example.

Also changed the key used in the second example to `:entity` in order to be consistent with the first example.
---
 doc/execution-model.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/execution-model.md b/doc/execution-model.md
index 1f431e3..c9ab493 100644
--- a/doc/execution-model.md
+++ b/doc/execution-model.md
@@ -51,14 +51,14 @@ value of the function is used as the new context value:
 
 {% highlight clojure %}
 (defresource foo
-  :service-available? {:a [1]}
-  :exists? (fn [ctx] #(assoc ctx :a [2]))
+  :service-available? {:entity [1]}
+  :exists? (fn [ctx] #(assoc ctx :entity [2]))
   :handle-ok :entity)
 {% endhighlight %}
 
 Without the wrapping in a function the updated context after
-```exists?``` would be ````{:a [1 2]}```` whereas in this case we get
-````{:a [1]}````.
+```exists?``` would be ````{:entity [1 2]}```` whereas in this case we get
+````{:entity [2]}````.
 
 ## Decision functions