Skip to content

Commit 371f947

Browse files
author
Jan Marsch
committed
Update README.md
Documented branch parameter for ´contents()´
1 parent 1f23b82 commit 371f947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repo.show(function(err, repo) {});
5454
Get contents at a particular path.
5555

5656
```js
57-
repo.contents("path/to/dir", function(err, contents) {});
57+
repo.contents("master", "path/to/dir", function(err, contents) {});
5858
```
5959

6060
Fork repository. This operation runs asynchronously. You may want to poll for `repo.contents` until the forked repo is ready.

0 commit comments

Comments
 (0)