From d4242ecef77b6ce478101ce83d741326d4a67435 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: Make ObjectType look like a pointer-receiver in the docs --- obj_commit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'obj_commit.go') diff --git a/obj_commit.go b/obj_commit.go index 2b87322f..628a188a 100644 --- a/obj_commit.go +++ b/obj_commit.go @@ -18,7 +18,8 @@ type Commit struct { } // ObjectType allows Commit to satisfy the Object interface. -func (*Commit) ObjectType() ObjectType { +func (commit *Commit) ObjectType() ObjectType { + _ = commit return ObjCommit } -- cgit v1.3.1-10-gc9f91