diff options
author | Lukasz Kokot <lukasz@kumojin.com> | 2018-10-28 20:55:22 -0400 |
---|---|---|
committer | Lukasz Kokot <lukasz@kumojin.com> | 2018-10-28 20:59:41 -0400 |
commit | 190bfd6aa60022afd0ef830342cfb07e33c45f37 (patch) | |
tree | 576563440f09797fe1b3411009a415840ba8a134 /_examples/commit | |
parent | 414b0276285a2bb91ad16ed9c0c147ad6286df70 (diff) | |
download | go-git-190bfd6aa60022afd0ef830342cfb07e33c45f37.tar.gz |
Fix spelling and grammar in docs and example
Signed-off-by: Lukasz Kokot <lukasz@kumojin.com>
Diffstat (limited to '_examples/commit')
-rw-r--r-- | _examples/commit/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/_examples/commit/main.go b/_examples/commit/main.go index 556cb9c..ec296b9 100644 --- a/_examples/commit/main.go +++ b/_examples/commit/main.go @@ -12,13 +12,13 @@ import ( "gopkg.in/src-d/go-git.v4/plumbing/object" ) -// Basic example of how to commit changes to the current branch to an existent +// Basic example of how to commit changes to the current branch to an existing // repository. func main() { CheckArgs("<directory>") directory := os.Args[1] - // Opens an already existent repository. + // Opens an already existing repository. r, err := git.PlainOpen(directory) CheckIfError(err) @@ -44,7 +44,7 @@ func main() { fmt.Println(status) - // Commits the current staging are to the repository, with the new file + // Commits the current staging area to the repository, with the new file // just created. We should provide the object.Signature of Author of the // commit. Info("git commit -m \"example go-git commit\"") |