aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-02-28 12:21:02 +0100
committerAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-02-28 12:21:02 +0100
commitd24ea4984ce6871ea24eb376325082602c766295 (patch)
treeb16a6f4b7171e3e1946fad91bde7a6226feab55e
parent305f28004ecbc03ea353437cf4c76423d93fbbd8 (diff)
downloadgo-git-d24ea4984ce6871ea24eb376325082602c766295.tar.gz
Fix typos
-rw-r--r--_examples/push/main.go6
-rw-r--r--_examples/remotes/main.go6
2 files changed, 6 insertions, 6 deletions
diff --git a/_examples/push/main.go b/_examples/push/main.go
index 7c23642..809c26b 100644
--- a/_examples/push/main.go
+++ b/_examples/push/main.go
@@ -7,8 +7,8 @@ import (
. "srcd.works/go-git.v4/_examples"
)
-// Example of how to open a repository in a specific path, and do a push to
-// his default remote (origin).
+// Example of how to open a repository in a specific path, and push to
+// its default remote (origin).
func main() {
CheckArgs("<repository-path>")
path := os.Args[1]
@@ -17,7 +17,7 @@ func main() {
CheckIfError(err)
Info("git push")
- // push using default push options
+ // push using default options
err = r.Push(&git.PushOptions{})
CheckIfError(err)
}
diff --git a/_examples/remotes/main.go b/_examples/remotes/main.go
index 8c59a67..06ffdd1 100644
--- a/_examples/remotes/main.go
+++ b/_examples/remotes/main.go
@@ -11,11 +11,11 @@ import (
)
// Example of how to:
-// - Create a new repository into memory
-// - Create a new remote called "example"
+// - Create a new in-memory repository
+// - Create a new remote named "example"
// - List remotes and print them
// - Pull using the new remote "example"
-// - Iterate again the references, but only showing hash references, not simbolic ones
+// - Iterate the references again, but only showing hash references, not symbolic ones
// - Remove remote "example"
func main() {
// Create a new repository