aboutsummaryrefslogtreecommitdiff
path: root/obj_tree.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commitd4242ecef77b6ce478101ce83d741326d4a67435 (patch)
treea36226cca2ec09fea00db4ec9a15a4f39f2f704b /obj_tree.go
parentFix tests using the wrong Serialize signatures (diff)
signature
Make ObjectType look like a pointer-receiver in the docs
Diffstat (limited to 'obj_tree.go')
-rw-r--r--obj_tree.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/obj_tree.go b/obj_tree.go
index 66fdb8bd..2ebe8af7 100644
--- a/obj_tree.go
+++ b/obj_tree.go
@@ -21,7 +21,8 @@ type TreeEntry struct {
}
// ObjectType allows Tree to satisfy the Object interface.
-func (*Tree) ObjectType() ObjectType {
+func (tree *Tree) ObjectType() ObjectType {
+ _ = tree
return ObjTree
}