diff --git a/docs/mithril.md b/docs/mithril.md index 1f8025dd..10fa215b 100644 --- a/docs/mithril.md +++ b/docs/mithril.md @@ -481,8 +481,8 @@ var MyComponent = { m.render(document.body, [ //the two lines below are equivalent - m(component, {data: "world"}), - m.component(component, {data: "world"}) + m(MyComponent, {data: "world"}), + m.component(MyComponent, {data: "world"}) ]) ```