Skip to content

Commit 28c0c75

Browse files
authored
Implement fix (#66)
1 parent ad2a966 commit 28c0c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pmem/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func ExampleMapAsPOD() {
1414
// Let's say the CPU has 4 x 32 bits memory mapped registers at the address
1515
// 0xDEADBEEF.
1616
var reg *[4]uint32
17-
if err := pmem.MapAsPOD(0xDEADBEAF, reg); err != nil {
17+
if err := pmem.MapAsPOD(0xDEADBEAF, &reg); err != nil {
1818
log.Fatal(err)
1919
}
2020
// reg now points to physical memory.

0 commit comments

Comments
 (0)