From f9953b8f74b578b5fb3d4b6a6ab4b96402d08b7c Mon Sep 17 00:00:00 2001 From: Masayuki Takeda Date: Fri, 28 Aug 2015 22:18:46 +0900 Subject: [PATCH] m.request: fix sample code in documentation --- docs/mithril.request.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }) }