Skip to content

Commit

Permalink
Implement fix (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsexton authored Jan 17, 2025
1 parent ad2a966 commit 28c0c75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmem/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func ExampleMapAsPOD() {
// Let's say the CPU has 4 x 32 bits memory mapped registers at the address
// 0xDEADBEEF.
var reg *[4]uint32
if err := pmem.MapAsPOD(0xDEADBEAF, reg); err != nil {
if err := pmem.MapAsPOD(0xDEADBEAF, &reg); err != nil {
log.Fatal(err)
}
// reg now points to physical memory.
Expand Down

0 comments on commit 28c0c75

Please sign in to comment.