mirror of
https://github.com/golang/go
synced 2024-11-19 08:34:39 -07:00
syscall: fix typo in comment
LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/120570043
This commit is contained in:
parent
bb843c0b2f
commit
ae55858e04
@ -56,7 +56,7 @@ func (m *mmapper) Mmap(fd int, offset int64, length int, prot int, flags int) (d
|
|||||||
cap int
|
cap int
|
||||||
}{addr, length, length}
|
}{addr, length, length}
|
||||||
|
|
||||||
// Use unsafeto turn sl into a []byte.
|
// Use unsafe to turn sl into a []byte.
|
||||||
b := *(*[]byte)(unsafe.Pointer(&sl))
|
b := *(*[]byte)(unsafe.Pointer(&sl))
|
||||||
|
|
||||||
// Register mapping in m and return it.
|
// Register mapping in m and return it.
|
||||||
|
Loading…
Reference in New Issue
Block a user