Skip to content

Commit

Permalink
Fix toBinary example in MIGRATING.md (#1340)
Browse files Browse the repository at this point in the history
Signed-off-by: Herman Bilous <[email protected]>
  • Loading branch information
HermanBilous authored Nov 25, 2024
1 parent e9d3e59 commit dfe3b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ import { toBinary } from "@bufbuild/protobuf";
import { SayRequestSchema } from "./gen/eliza_pb";

- sayRequest.toBinary();
+ toBinary(sayRequest, SayRequestSchema);
+ toBinary(SayRequestSchema, sayRequest);
```

The same applies to the methods `equals`, `clone`, `toJson`, and `toJsonString`,
Expand Down

0 comments on commit dfe3b4f

Please sign in to comment.