We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad2a966 commit 28c0c75Copy full SHA for 28c0c75
pmem/example_test.go
@@ -14,7 +14,7 @@ func ExampleMapAsPOD() {
14
// Let's say the CPU has 4 x 32 bits memory mapped registers at the address
15
// 0xDEADBEEF.
16
var reg *[4]uint32
17
- if err := pmem.MapAsPOD(0xDEADBEAF, reg); err != nil {
+ if err := pmem.MapAsPOD(0xDEADBEAF, ®); err != nil {
18
log.Fatal(err)
19
}
20
// reg now points to physical memory.
0 commit comments