diff --git a/docs/mithril.request.md b/docs/mithril.request.md index fb29d28e..b6d071c7 100644 --- a/docs/mithril.request.md +++ b/docs/mithril.request.md @@ -535,7 +535,7 @@ where: demo.view = function(ctrl) { return m("div", [ //in the first redraw, there's no user, so ensure we don't throw an error - ctrl.user ? ctrl.user.name : "no user" + ctrl.user() ? ctrl.user().name : "no user" ]) } ```