diff --git a/docs/mithril.route.md b/docs/mithril.route.md index 3f4d7fe8..d6c1bfd8 100644 --- a/docs/mithril.route.md +++ b/docs/mithril.route.md @@ -47,7 +47,7 @@ var dashboard = { this.id = m.route.param("userID"); }, view: function(controller) { - m.render("body", controller.id); + return m("div", controller.id); } }