Permalink
Browse files

Merge pull request #3 from jeroenvandijk/patch-1

Fix typo
  • Loading branch information...
2 parents a68ef2a + ab71290 commit d9250e3deb9d76f225727e823f91e063c26b65e8 @andrewvc committed Apr 28, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.markdown
View
@@ -20,7 +20,7 @@ Here's an example route that responds in one shot:
```clojure
; Note, same syntax as noir's defpage, but with "conn" parameter
-(defpage-asyc "/route" [] conn
+(defpage-async "/route" [] conn
(async-push conn {:status 404 :body "Couldn't find it!"}))
```
@@ -34,7 +34,7 @@ This is an example route that handles a websocket:
Finally, here's an example of responding in a chunked fashion:
```clojure
-(defpage-asyc "/always-chunky" [] conn
+(defpage-async "/always-chunky" [] conn
;; Sending the header explicitly indicates a chunked response
(async-push conn {:status 200 :chunked true})
(async-push conn "chunk one")

0 comments on commit d9250e3

Please sign in to comment.