aboutsummaryrefslogtreecommitdiffstats
path: root/_examples
diff options
context:
space:
mode:
authorOleksandr Redko <oleksandr.red+github@gmail.com>2019-10-24 23:33:57 +0300
committerOleksandr Redko <oleksandr.red+github@gmail.com>2019-10-24 23:37:27 +0300
commit81627ab53e269a762b769b47c004cb4309452492 (patch)
treecc7274d6f63f02112d407f9d0da5ddbc5ea2eaa1 /_examples
parentaac20cc0e86f9f563bc74c42e9b9c598dfe271da (diff)
downloadgo-git-81627ab53e269a762b769b47c004cb4309452492.tar.gz
Fix typos in comments, variables and function names
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
Diffstat (limited to '_examples')
-rw-r--r--_examples/ls-remote/main.go2
-rw-r--r--_examples/merge_base/helpers.go4
-rw-r--r--_examples/progress/main.go2
-rw-r--r--_examples/tag/main.go2
4 files changed, 5 insertions, 5 deletions
diff --git a/_examples/ls-remote/main.go b/_examples/ls-remote/main.go
index 68c0454..42d9b4e 100644
--- a/_examples/ls-remote/main.go
+++ b/_examples/ls-remote/main.go
@@ -19,7 +19,7 @@ func main() {
log.Print("Fetching tags...")
- // We can then use every Remote functions to retrieve wanted informations
+ // We can then use every Remote functions to retrieve wanted information
refs, err := rem.List(&git.ListOptions{})
if err != nil {
log.Fatal(err)
diff --git a/_examples/merge_base/helpers.go b/_examples/merge_base/helpers.go
index b7b1ed6..179a817 100644
--- a/_examples/merge_base/helpers.go
+++ b/_examples/merge_base/helpers.go
@@ -13,7 +13,7 @@ func checkIfError(err error, code exitCode, mainReason string, v ...interface{})
return
}
- printErr(wrappErr(err, mainReason, v...))
+ printErr(wrapErr(err, mainReason, v...))
os.Exit(int(code))
}
@@ -52,7 +52,7 @@ func printCommits(commits []*object.Commit) {
}
}
-func wrappErr(err error, s string, v ...interface{}) error {
+func wrapErr(err error, s string, v ...interface{}) error {
if err != nil {
return fmt.Errorf("%s\n %s", fmt.Sprintf(s, v...), err)
}
diff --git a/_examples/progress/main.go b/_examples/progress/main.go
index 357703c..074430f 100644
--- a/_examples/progress/main.go
+++ b/_examples/progress/main.go
@@ -22,7 +22,7 @@ func main() {
// as git does, when you make a clone, pull or some other operations the
// server sends information via the sideband, this information can being
- // collected provinding a io.Writer to the CloneOptions options
+ // collected providing a io.Writer to the CloneOptions options
Progress: os.Stdout,
})
diff --git a/_examples/tag/main.go b/_examples/tag/main.go
index 1e6212b..93192b0 100644
--- a/_examples/tag/main.go
+++ b/_examples/tag/main.go
@@ -15,7 +15,7 @@ func main() {
CheckArgs("<path>")
path := os.Args[1]
- // We instanciate a new repository targeting the given path (the .git folder)
+ // We instantiate a new repository targeting the given path (the .git folder)
r, err := git.PlainOpen(path)
CheckIfError(err)