Skip to content

Commit 3676546

Browse files
committed
Fixing array return formatting in docs
1 parent 28cf6e0 commit 3676546

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

lib/convenient_hunk.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ ConvenientHunk.prototype.size = function() {
2828

2929
/**
3030
* The lines in this hunk
31-
* @return Promise({[ConvenientLine]}) a promise that resolves to an array of
31+
* @async
32+
* @return {Array<ConvenientLine>} a promise that resolves to an array of
3233
* ConvenientLines
3334
*/
3435
ConvenientHunk.prototype.lines = function() {

lib/convenient_patch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ ConvenientPatch.prototype.size = function() {
3535

3636
/**
3737
* The hunks in this patch
38-
* @return Promise({[ConvenientHunk]}) a promise that resolves to an array of
38+
* @async
39+
* @return {Array<ConvenientHunk>} a promise that resolves to an array of
3940
* ConvenientHunks
4041
*/
4142
ConvenientPatch.prototype.hunks = function() {

lib/diff.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ var Patch = NodeGit.Patch;
99
/**
1010
* Retrieve patches in this difflist
1111
*
12-
* @return Promise({[ConvenientPatch]}) a promise that resolves to an array of
12+
* @async
13+
* @return {Array<ConvenientPatch>} a promise that resolves to an array of
1314
* ConvenientPatches
1415
*/
1516
Diff.prototype.patches = function() {

lib/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Tree.prototype.getEntry = function(filePath, callback) {
8282

8383
/**
8484
* Return an array of the entries in this tree (excluding its children).
85-
* @return {[TreeEntry]} an array of TreeEntrys
85+
* @return {Array<TreeEntry>} an array of TreeEntrys
8686
*/
8787
Tree.prototype.entries = function() {
8888
var size = this.entryCount();

0 commit comments

Comments
 (0)