Skip to content

Commit 3a7b2f3

Browse files
committed
Update README.md
Fixed function signature of repo.contents()
1 parent aa8aa3c commit 3a7b2f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Show repository information
3838
repo.show(function(err, repo) {});
3939
```
4040

41-
Get contents at a particular path.
41+
Get contents at a particular path in a particular branch.
4242

4343
```js
44-
repo.contents("path/to/dir", function(err, contents) {});
44+
repo.contents("master", "path/to/dir", function(err, contents) {});
4545
```
4646

4747
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)