Skip to content

Fix field number in expanded repeated field example #257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/programming-guides/encoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ message Test4 {
```

and we construct a `Test4` message with `d` set to `"hello"`, and `e` set to
`1`, `2`, and `3`, this *could* be encoded as `` `3206038e029ea705` ``, or
`3`, `270`, and `86942`, this *could* be encoded as `` `220568656C6C6F3206038e029ea705` ``, or
written out as Protoscope,

```proto
Expand All @@ -340,10 +340,10 @@ records for the same field with respect to each other is preserved. Thus, this
could look like the following:

```proto
5: 1
5: 2
6: 3
6: 270
4: {"hello"}
5: 3
6: 86942
```

Only repeated fields of primitive numeric types can be declared "packed". These
Expand Down