Skip to content

Commit cba8031

Browse files
committed
Updated readme code to a working example.
1 parent ce70237 commit cba8031

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/slamdata/purescript-affjax.svg?branch=master)](https://travis-ci.org/slamdata/purescript-affjax)
44

5-
An library taking advantage of [`purescript-aff`](https://github.com/slamdata/purescript-aff) to enable pain-free asynchronous AJAX requests and response handling.
5+
A library taking advantage of [`purescript-aff`](https://github.com/slamdata/purescript-aff) to enable pain-free asynchronous AJAX requests and response handling.
66

77
# Getting Started
88

@@ -19,7 +19,7 @@ You can construct requests with the `affjax` function:
1919
```purescript
2020
main = launchAff $ do
2121
res <- affjax $ defaultRequest { url = "/api", method = GET }
22-
liftEff $ trace $ "GET /api response: " ++ res.response
22+
liftEff $ log $ "GET /api response: " ++ res.response
2323
```
2424

2525
(`defaultRequest` is a record value that has all the required fields pre-set for convenient overriding when making a request.)

0 commit comments

Comments
 (0)