From c861ade3fa92cfe1b652ab946513149b0b6d5617 Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 2 Feb 2017 07:46:29 -0500 Subject: [PATCH] fix typo --- README.md | 15 ++++++++------- docs/index.md | 4 ++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9100b1f9..cdcd540c 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ It's small (< 8kb gzip), fast and provides routing and XHR utilities out of the
-
Rendering Time
+
Performance
Mithril (6.4ms)
Vue (9.8ms) @@ -53,13 +53,14 @@ The easiest way to try out Mithril is to include it from a CDN, and follow this Let's create an HTML file to follow along: ```markup - - - + + // your code goes here! + + ``` --- diff --git a/docs/index.md b/docs/index.md index 9cbc1016..b95e83ff 100644 --- a/docs/index.md +++ b/docs/index.md @@ -224,7 +224,7 @@ Basically, XHR is just a way to talk to a server. Let's change our click counter to make it save data on a server. For the server, we'll use [REM](http://rem-rest-api.herokuapp.com), a mock REST API designed for toy apps like this tutorial. -First we create a function that calls `m.request`. The `url` specifies an endpoint that represents a resource, the `method` specifies the type of action we're taking (typically the `PUT` method [upserts](https://en.wiktionary.org/wiki/upsert)), `data` is the payload that we're sending to the endpoint and `useCredentials` means to enable cookies (a requirement for the REM API to work) +First we create a function that calls `m.request`. The `url` specifies an endpoint that represents a resource, the `method` specifies the type of action we're taking (typically the `PUT` method [upserts](https://en.wiktionary.org/wiki/upsert)), `data` is the payload that we're sending to the endpoint and `withCredentials` means to enable cookies (a requirement for the REM API to work) ```javascript var count = 0 @@ -233,7 +233,7 @@ var increment = function() { method: "PUT", url: "http://rem-rest-api.herokuapp.com/api/tutorial/1", data: {count: count + 1}, - useCredentials: true, + withCredentials: true, }) .then(function(data) { count = parseInt(data.count)