aboutsummaryrefslogtreecommitdiff
path: root/lnode.go
diff options
context:
space:
mode:
Diffstat (limited to 'lnode.go')
-rw-r--r--lnode.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lnode.go b/lnode.go
index f84a412..dd6f494 100644
--- a/lnode.go
+++ b/lnode.go
@@ -17,11 +17,11 @@ type lnode struct {
// key returns a byte slice of the node key.
func (n *lnode) key() []byte {
buf := (*[maxAllocSize]byte)(unsafe.Pointer(n))
- return buf[n.pos:n.pos+n.ksize]
+ return buf[n.pos : n.pos+n.ksize]
}
// value returns a byte slice of the node value.
func (n *lnode) value() []byte {
buf := (*[maxAllocSize]byte)(unsafe.Pointer(n))
- return buf[n.pos+n.ksize:n.pos+n.ksize+n.vsize]
+ return buf[n.pos+n.ksize : n.pos+n.ksize+n.vsize]
}