Skip to content

Commit 1ffe4fd

Browse files
authored
Fix marshaler interface function name in examples in docs (#4978)
1 parent 26d134f commit 1ffe4fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/mapping/custom_marshalers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type YourMarshaler struct {
2727

2828
// ...
2929

30-
func (*YourMarshaler) Delimited() []byte {
30+
func (*YourMarshaler) Delimiter() []byte {
3131
return []byte("|")
3232
}
3333
```
@@ -59,7 +59,7 @@ type CustomJSONPb struct {
5959
runtime.JSONPb
6060
}
6161

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

0 commit comments

Comments
 (0)