Skip to content

Commit 5f9867c

Browse files
committed
Group var declarations
1 parent b4aabd3 commit 5f9867c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mmap_windows.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ import (
4343
type memoryMap []byte
4444

4545
// Windows
46-
var handleLock sync.Mutex
47-
var handleMap = map[uintptr]windows.Handle{}
46+
var (
47+
handleLock sync.Mutex
48+
handleMap = map[uintptr]windows.Handle{}
49+
)
4850

4951
func mmap(fd int, length int) (data []byte, err error) {
5052
h, errno := windows.CreateFileMapping(windows.Handle(fd), nil,

0 commit comments

Comments
 (0)