diff --git a/src/urlRouter.js b/src/urlRouter.js index e4a76524f..eec2dfa22 100644 --- a/src/urlRouter.js +++ b/src/urlRouter.js @@ -88,14 +88,14 @@ function $UrlRouterProvider( $locationProvider, $urlMatcherFactory) { * * // Example of using function rule as param * $urlRouterProvider.otherwise(function ($injector, $location) { - * ... + * return '/a/valid/url'; * }); * }); * * * @param {string|object} rule The url path you want to redirect to or a function * rule that returns the url path. The function version is passed two params: - * `$injector` and `$location` services. + * `$injector` and `$location` services, and must return a url string. * * @return {object} `$urlRouterProvider` - `$urlRouterProvider` instance */