diff --git a/src/ng/location.js b/src/ng/location.js index 63c3eed97fb9..7a64aefdf193 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -482,7 +482,7 @@ var locationPrototype = { * ``` * * @param {(string|number)=} path New path - * @return {string} path + * @return {(string|object)} path if called with no parameters, or `$location` if called with a parameter */ path: locationGetterSetter('$$path', function(path) { path = path !== null ? path.toString() : '';