aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorColin Okay <colin@cicadas.surf>2022-07-09 09:18:46 -0500
committerColin Okay <colin@cicadas.surf>2022-07-09 09:18:46 -0500
commit6897f90e0f3df933b271eadd6a41513c8173c080 (patch)
tree04504c7a5249795ad240f73ad2b9bfcda3c40513
parent74c85df8a56eb18634c5d68953e078ab99585ade (diff)
[formatting]
-rw-r--r--README.org5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.org b/README.org
index a97d2ba..a8f9844 100644
--- a/README.org
+++ b/README.org
@@ -160,8 +160,9 @@ Here is a simple example where a handler is defined, from the pong game:
#+begin_src lisp
(ww:defhandler pong-mousemove
(ww:on-mousemotion (app)
- (setf (ww:x (paddle app)) (- x (* 0.5 (ww:width (paddle app))))
- (dx (paddle app)) xrel)))
+ (with-slots (paddle) app
+ (setf (ww:x paddle) (- x (* 0.5 (ww:width paddle)))
+ (dx paddle) xrel))))
#+end_src
See the example for details.