From c97dcb5401e8be846eaf1a76d9312bbb954b1d2a Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Mon, 18 Feb 2019 22:36:01 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- entity.go | 2 +- node.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/entity.go b/entity.go index 7a12fdc..6244a76 100644 --- a/entity.go +++ b/entity.go @@ -33,7 +33,7 @@ func (e *entity) SetProperty(key string, value string) error { return nil // Success! } -// GetProperty fetches the value of property key. +// Property fetches the value of property key. func (e *entity) Property(key string) (string, error) { var val string parts := []string{e.HrefProperties, key} diff --git a/node.go b/node.go index 2c98903..7148423 100644 --- a/node.go +++ b/node.go @@ -189,7 +189,7 @@ func (n *Node) Relate(relType string, destId int, p Props) (*Relationship, error return &rel, nil } -// AddLabels adds one or more labels to a node. +// AddLabel adds one or more labels to a node. func (n *Node) AddLabel(labels ...string) error { ne := NeoError{} resp, err := n.Db.Session.Post(n.HrefLabels, labels, nil, &ne)