aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/open/main.go
diff options
context:
space:
mode:
Diffstat (limited to '_examples/open/main.go')
-rw-r--r--_examples/open/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/_examples/open/main.go b/_examples/open/main.go
index 9174588..d4b54dc 100644
--- a/_examples/open/main.go
+++ b/_examples/open/main.go
@@ -25,7 +25,7 @@ func main() {
CheckIfError(err)
// ... retrieving the commit object
- commit, err := r.Commit(ref.Hash())
+ commit, err := r.CommitObject(ref.Hash())
CheckIfError(err)
// ... calculating the commit history