diff --git a/docs/mithril.module.md b/docs/mithril.module.md index f96e7720..dcc59168 100644 --- a/docs/mithril.module.md +++ b/docs/mithril.module.md @@ -100,7 +100,7 @@ m.module(document, module1); var module2 = {}; module2.controller = function() {}; -module1.view = function() {}; +module2.view = function() {}; m.module(document, module2); // logs "unloading module 1" ``` @@ -161,4 +161,4 @@ where: - **returns Object controllerInstance** - An instance of the controller constructor \ No newline at end of file + An instance of the controller constructor