diff --git a/README.md b/README.md index 3334a236..08636be2 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ Let's wrap our text in an `

` tag. m.render(root, m("h1", "My first app")) ``` -The `m()` function can be used to describe any HTML structure you want. So if you to add a class to the `

`: +The `m()` function can be used to describe any HTML structure you want. So if you need to add a class to the `

`: ```javascript m("h1", {class: "title"}, "My first app") diff --git a/docs/change-log.md b/docs/change-log.md index b87e217b..014f6c23 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -635,12 +635,12 @@ greetAsync() ### `v1.x` ```javascript -var greetAsync = function(){ - return new Promise(function(resolve){ - setTimeout(function() { - resolve("hello") - }, 1000) - }) +var greetAsync = function() { + return new Promise(function(resolve){ + setTimeout(function() { + resolve("hello") + }, 1000) + }) } greetAsync()