diff --git a/docs/mithril.request.md b/docs/mithril.request.md index 491cb537..e2e7b3af 100644 --- a/docs/mithril.request.md +++ b/docs/mithril.request.md @@ -408,7 +408,7 @@ demo.controller = function() { demo.view = function(ctrl) { //This view gets rendered before the request above completes //Calling .map doesn't throw an error because we defined the initial value to be an empty array, instead of undefined - return ctrl.users().map(function() { + return ctrl.users().map(function(user) { return m("div", user.name) }) }