Skip to content

Commit 9a70101

Browse files
mengzhuotklauser
authored andcommitted
runtime: fix typo of MADV_NOHUGEPAGE
Change-Id: I60a1ca606fe7492c05697c4d58afc7f19fcc63fe Reviewed-on: https://go-review.googlesource.com/c/go/+/203340 Reviewed-by: Tobias Klauser <[email protected]> Run-TryBot: Tobias Klauser <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 3c25e5e commit 9a70101

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/defs2_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const (
6161
MADV_DONTNEED = C.MADV_DONTNEED
6262
MADV_FREE = C.MADV_FREE
6363
MADV_HUGEPAGE = C.MADV_HUGEPAGE
64-
MADV_NOHUGEPAGE = C.MADV_HNOUGEPAGE
64+
MADV_NOHUGEPAGE = C.MADV_NOHUGEPAGE
6565

6666
SA_RESTART = C.SA_RESTART
6767
SA_ONSTACK = C.SA_ONSTACK

src/runtime/defs_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const (
5151
MADV_DONTNEED = C.MADV_DONTNEED
5252
MADV_FREE = C.MADV_FREE
5353
MADV_HUGEPAGE = C.MADV_HUGEPAGE
54-
MADV_NOHUGEPAGE = C.MADV_HNOUGEPAGE
54+
MADV_NOHUGEPAGE = C.MADV_NOHUGEPAGE
5555

5656
SA_RESTART = C.SA_RESTART
5757
SA_ONSTACK = C.SA_ONSTACK

0 commit comments

Comments
 (0)