Skip to content

Commit bae468c

Browse files
authored
Merge pull request #1884 from tniessen/typos-examples
Fix typos in examples
2 parents 7797550 + 1845be3 commit bae468c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

examples/create-new-repo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const repoDir = "../newRepo";
2323
const committer = nodegit.Signature.now("Scott A Chacon",
2424
"scott@github.com");
2525

26-
// Since we're creating an inital commit, it has no parents. Note that unlike
26+
// Since we're creating an initial commit, it has no parents. Note that unlike
2727
// normal we don't get the head either, because there isn't one yet.
2828
const commitId = await repo.createCommit("HEAD", author, committer, "message", oid, []);
2929
console.log("New Commit: ", commitId);

examples/general.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ const path = require("path");
256256

257257
// Now that we have the starting point pushed onto the walker, we start
258258
// asking for ancestors. It will return them in the sorting order we asked
259-
// for as commit oids. We can then lookup and parse the commited pointed
259+
// for as commit oids. We can then lookup and parse the commits pointed
260260
// at by the returned OID; note that this operation is specially fast
261-
// since the raw contents of the commit object will be cached in memory
261+
// since the raw contents of the commit object will be cached in memory.
262262

263263
async function walk() {
264264
let oid;

examples/merge-with-conflicts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ fse.remove(path.resolve(__dirname, repoDir))
175175
}
176176
})
177177

178-
// we need to get a new index as the other one isnt backed to
179-
// the repository in the usual fashion, and just behaves weirdly
178+
// we need to get a new index as the other one is not backed to
179+
// the repository in the usual fashion, and just behaves weirdly.
180180
.then(function() {
181181
return repository.refreshIndex()
182182
.then(function(index) {

0 commit comments

Comments
 (0)