Skip to content

Commit 1f41cf5

Browse files
Expand the repeated field example to make the outcome clear and direct.
PiperOrigin-RevId: 810994232
1 parent 8344190 commit 1f41cf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/reference/protobuf/textformat-spec.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ repeated_field: 6
362362
repeated_field: [7, 8, 9]
363363
```
364364

365+
is equivalent to:
366+
367+
```textproto
368+
repeated_field: [1, 2, 3, 4, 5, 6, 7, 8, 9]
369+
```
370+
365371
Non-`repeated` fields cannot use the list syntax. For example, `[0]` is not
366372
valid for `optional` or `required` fields. Fields marked `optional` can be
367373
omitted or specified once. Fields marked `required` must be specified exactly

0 commit comments

Comments
 (0)