about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhanemile <hanemile@protonmail.com>2018-12-14 18:15:44 +0100
committerhanemile <hanemile@protonmail.com>2018-12-14 18:15:44 +0100
commit82abca44f9be90c73194f6dd067684660a622143 (patch)
tree1b982e9a5322f247594716964f661171d317315a
parentfd0ffc82ec36d021669e1bbf10f74bfc3822dd57 (diff)
removed the pointer foo
-rw-r--r--quadtree.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/quadtree.go b/quadtree.go
index 0be4079..e120904 100644
--- a/quadtree.go
+++ b/quadtree.go
@@ -73,6 +73,6 @@ func (q *Quadtree) IsLeaf() bool {
 }
 
 // NewQuadtree generates a new root node.
-func NewQuadtree(boundary BoundingBox) *Quadtree {
-	return &Quadtree{Boundary: boundary}
+func NewQuadtree(boundary BoundingBox) Quadtree {
+	return Quadtree{Boundary: boundary}
 }