about summary refs log tree commit diff
path: root/backend
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-07 16:17:33 +0100
committerEmile <hanemile@protonmail.com>2019-03-07 16:17:33 +0100
commit14ac5133afdab7704cfc64e8eb0c699949a47aa4 (patch)
tree3cc6176d9e169ccd9180d9e4676ad73e5f4bfbfe /backend
parentc8ca77ad65e9c0b31c6bd5289de0c1d332c06e63 (diff)
update the comments making them golint compatible
Diffstat (limited to 'backend')
-rw-r--r--backend/update.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/update.go b/backend/update.go
index d51b115..9e78b84 100644
--- a/backend/update.go
+++ b/backend/update.go
@@ -7,7 +7,7 @@ import (
 	"log"
 )
 
-// updateTotalMass gets a tree index and returns the nodeID of the trees root node
+// UpdateTotalMass gets a tree index and returns the nodeID of the trees root node
 func UpdateTotalMass(database *sql.DB, index int64) {
 	db = database
 	rootNodeID := getRootNodeID(index)
@@ -62,7 +62,7 @@ func updateTotalMassNode(nodeID int64) float64 {
 	return totalmass
 }
 
-// updateCenterOfMass recursively updates the center of mass of all the nodes starting at the node with the given
+// UpdateCenterOfMass recursively updates the center of mass of all the nodes starting at the node with the given
 // root index
 func UpdateCenterOfMass(database *sql.DB, index int64) {
 	db = database