File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ You can pass a second function parameter to the `.then` method that will have
8585the 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
100100receive 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
115115wasn'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})
You can’t perform that action at this time.
0 commit comments