Skip to content

Commit f90d537

Browse files
committed
fix typo
1 parent fe87ec5 commit f90d537

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/repositories/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ You can pass a second function parameter to the `.then` method that will have
8585
the reason why a promise failed in it's first argument.
8686

8787
``` javascript
88-
NodeGit.Repository.open(pathToRepo).then(function (sucessfulResult) {
88+
NodeGit.Repository.open(pathToRepo).then(function (successfulResult) {
8989
// This is the first function of the then which contains the successfully
9090
// calculated result of the promise
9191
}, function (reasonForFailure) {
@@ -100,7 +100,7 @@ You can also append a `.catch` to the end of a promise chain which will
100100
receive any promise failure that isn't previously caught
101101

102102
``` javascript
103-
NodeGit.Repository.open(pathToRepo).then(function (sucessfulResult) {
103+
NodeGit.Repository.open(pathToRepo).then(function (successfulResult) {
104104
// This is the first function of the then which contains the successfully
105105
// calculated result of the promise
106106
})
@@ -115,7 +115,7 @@ If you append a `.done` at the end of your chain, you will have any error that
115115
wasn't previously handled by the above 2 methods thrown.
116116

117117
``` javascript
118-
NodeGit.Repository.open(pathToRepo).then(function (sucessfulResult) {
118+
NodeGit.Repository.open(pathToRepo).then(function (successfulResult) {
119119
// This is the first function of the then which contains the successfully
120120
// calculated result of the promise
121121
})

0 commit comments

Comments
 (0)