diff options
| author | Igor Minar | 2010-11-17 12:13:04 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-18 02:34:53 -0800 |
| commit | 4c69d694d75f01cffbc75be331b5636068a41048 (patch) | |
| tree | c2dd23dc6813c9ab9baaea50f025908f1be001fc /docs/collect.js | |
| parent | ff7c738c21075f834b5f610085d195cfa1eb5110 (diff) | |
| download | angular.js-4c69d694d75f01cffbc75be331b5636068a41048.tar.bz2 | |
make @returns type non-optional
Diffstat (limited to 'docs/collect.js')
| -rw-r--r-- | docs/collect.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/collect.js b/docs/collect.js index 5a5e3ee9..2cb85fe2 100644 --- a/docs/collect.js +++ b/docs/collect.js @@ -208,12 +208,12 @@ function propertyTag(doc, name, value) { } function returnsTag(doc, name, value) { - var match = value.match(/^({(\S+)}\s*)?(.*)?/); + var match = value.match(/^{(\S+)}\s+(.*)?/); if (match) { var tag = { - type: match[2], - description: match[3] || false + type: match[1], + description: match[2] || false }; } else { throw "[" + doc.raw.file + ":" + doc.raw.line + |
