summaryrefslogtreecommitdiffstats
path: root/lib/models
diff options
context:
space:
mode:
authorSoreine <nicolas@gitbook.com>2016-05-03 16:02:58 +0200
committerSoreine <nicolas@gitbook.com>2016-05-03 16:02:58 +0200
commit3fc90554f5e7e6ff2fb4f023319799e1e8f81454 (patch)
treedc34d87ba50d004c9fac610a370432ae340ad498 /lib/models
parent4ebe28faaebb8752107ef6cfa6253f7b6f8a2a86 (diff)
downloadgitbook-3fc90554f5e7e6ff2fb4f023319799e1e8f81454.zip
gitbook-3fc90554f5e7e6ff2fb4f023319799e1e8f81454.tar.gz
gitbook-3fc90554f5e7e6ff2fb4f023319799e1e8f81454.tar.bz2
Add tests, and fixes.
Diffstat (limited to 'lib/models')
-rw-r--r--lib/models/summary.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/models/summary.js b/lib/models/summary.js
index a25d9ec..8a4afc7 100644
--- a/lib/models/summary.js
+++ b/lib/models/summary.js
@@ -56,7 +56,7 @@ Summary.prototype.getArticle = function(iter, partIter) {
Return a part/article by its level
@param {String} level
- @return {Article}
+ @return {Article|Part}
*/
Summary.prototype.getByLevel = function(level) {
function iterByLevel(article) {