diff options
Diffstat (limited to 'docs/src/ngdoc.js')
| -rw-r--r-- | docs/src/ngdoc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index def665fa..6576e619 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -227,10 +227,10 @@ Doc.prototype = { 'default':match[6] }; self.param.push(param); - } else if (atName == 'returns') { + } else if (atName == 'returns' || atName == 'return') { match = text.match(/^\{([^}=]+)\}\s+(.*)/); if (!match) { - throw new Error("Not a valid 'returns' format: " + text); + throw new Error("Not a valid 'returns' format: " + text + ' in ' + self.file + ':' + self.line); } self.returns = { type: match[1], |
