Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Oct 14, 2024
1 parent 1bf11f4 commit 387d76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen_msg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func ExampleSetDataOnMessage() {
}

func ExampleNewMessage() {
msg := fauxrpc.NewMessage(elizav1.File_connectrpc_eliza_v1_eliza_proto.Messages().ByName("SayResponse"), fauxrpc.GenOptions{})
msg, _ := fauxrpc.NewMessage(elizav1.File_connectrpc_eliza_v1_eliza_proto.Messages().ByName("SayResponse"), fauxrpc.GenOptions{})
b, _ := protojson.MarshalOptions{Indent: " "}.Marshal(msg)
fmt.Println(string(b))
}
Expand Down

0 comments on commit 387d76a

Please sign in to comment.