Fix small typos in the rewrite docs (#1533)

This commit is contained in:
Patrik Johnson 2017-01-12 01:41:15 +02:00 committed by Pat Cavit
parent 68f832d776
commit 7a4349c332
3 changed files with 3 additions and 3 deletions

View file

@ -170,7 +170,7 @@ Mithril supports both strings and objects as valid `style` values. In other word
```javascript
m("div", {style: "background:red;"})
m("div", {style: {background: "red"}})
m("div[style=background:red")
m("div[style=background:red]")
```
Using a string as a `style` would overwrite all inline styles in the element if it is redrawn, and not only CSS rules whose values have changed.