Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
poolpOrg committed Jan 15, 2023
1 parent 5fc7479 commit 2e9e616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/04-fd-passing-forever/child.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func child() {
<-channel.Dispatch()
}

func handlePING(msg ipcmsg.IPCMessage) {
func handlePING(msg *ipcmsg.IPCMessage) {
var data string
msg.Unmarshal(&data)

Expand Down
2 changes: 1 addition & 1 deletion examples/04-fd-passing-forever/parent.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func parent() {
<-channel.Dispatch()
}

func handlePONG(msg ipcmsg.IPCMessage) {
func handlePONG(msg *ipcmsg.IPCMessage) {
var data string
msg.Unmarshal(&data)

Expand Down

0 comments on commit 2e9e616

Please sign in to comment.