Skip to content

Commit

Permalink
Fix marshaler interface function name in examples in docs (#4978)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-nix authored Nov 21, 2024
1 parent 26d134f commit 1ffe4fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/mapping/custom_marshalers.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type YourMarshaler struct {

// ...

func (*YourMarshaler) Delimited() []byte {
func (*YourMarshaler) Delimiter() []byte {
return []byte("|")
}
```
Expand Down Expand Up @@ -59,7 +59,7 @@ type CustomJSONPb struct {
runtime.JSONPb
}

func (*CustomJSONPb) Delimited() []byte {
func (*CustomJSONPb) Delimiter() []byte {
// Strictly speaking this is already the default delimiter for JSONPb, but
// providing it here for completeness with an NDJSON marshaler all in one
// place.
Expand Down

0 comments on commit 1ffe4fd

Please sign in to comment.