From 318008331f32b12e0deae6149fe8ac7e944ae891 Mon Sep 17 00:00:00 2001 From: bluewebgeek Date: Wed, 13 Jun 2018 16:05:41 +0800 Subject: [PATCH] Add comments for mmap package usage --- consensus/ethash/ethash.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go index 23a251062a..701f6c51ea 100644 --- a/consensus/ethash/ethash.go +++ b/consensus/ethash/ethash.go @@ -64,7 +64,8 @@ func isLittleEndian() bool { } // memoryMap tries to memory map a file of uint32s for read only access. -// mmap is a portable memory map package which would enable direct access for memory mapping files +// mmap is a portable memory map package which would enable direct access for +// memory mapping files func memoryMap(path string) (*os.File, mmap.MMap, []uint32, error) { file, err := os.OpenFile(path, os.O_RDONLY, 0644) if err != nil {