Skip to content

Commit abde43d

Browse files
committed
Fix small syntactical errors in the examples for feature settings
`options features.repeated_field_encoding = EXPANDED;` needs to use `option` instead of `options`.
1 parent 77975f0 commit abde43d

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

content/editions/features.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ and after of a proto3 file.
4949
The following code sample shows a proto2 file:
5050

5151
```proto
52-
syntax = "proto2"
52+
syntax = "proto2";
5353
5454
enum Foo {
5555
A = 2;
@@ -62,7 +62,7 @@ After running [Prototiller](#prototiller), the equivalent code might look like
6262
this:
6363

6464
```proto
65-
edition = "2023"
65+
edition = "2023";
6666
6767
enum Foo {
6868
option features.enum_type = CLOSED;
@@ -104,7 +104,7 @@ for more information.
104104
The following code sample shows a proto2 file:
105105

106106
```proto
107-
syntax = "proto2"
107+
syntax = "proto2";
108108
109109
message Foo {
110110
required int32 x = 1;
@@ -116,7 +116,7 @@ message Foo {
116116
After running Prototiller, the equivalent code might look like this:
117117

118118
```proto
119-
edition = "2023"
119+
edition = "2023";
120120
121121
message Foo {
122122
int32 x = 1 [features.field_presence = LEGACY_REQUIRED];
@@ -128,7 +128,7 @@ message Foo {
128128
The following shows a proto3 file:
129129

130130
```proto
131-
syntax = "proto3"
131+
syntax = "proto3";
132132
133133
message Bar {
134134
int32 x = 1;
@@ -140,7 +140,7 @@ message Bar {
140140
After running Prototiller, the equivalent code might look like this:
141141

142142
```proto
143-
edition = "2023"
143+
edition = "2023";
144144
option features.field_presence = IMPLICIT;
145145
146146
message Bar {
@@ -227,7 +227,7 @@ and after of a proto3 file.
227227
The following code sample shows a proto2 file:
228228

229229
```proto
230-
syntax = "proto2"
230+
syntax = "proto2";
231231
232232
message Foo {
233233
group Bar = 1 {
@@ -240,7 +240,7 @@ message Foo {
240240
After running Prototiller, the equivalent code might look like this:
241241

242242
```proto
243-
edition = "2023"
243+
edition = "2023";
244244
245245
message Foo {
246246
message Bar {
@@ -275,7 +275,7 @@ for `repeated` fields has been migrated to in Editions.
275275
The following code sample shows a proto2 file:
276276

277277
```proto
278-
syntax = "proto2"
278+
syntax = "proto2";
279279
280280
message Foo {
281281
repeated int32 bar = 6 [packed=true];
@@ -286,8 +286,8 @@ message Foo {
286286
After running Prototiller, the equivalent code might look like this:
287287

288288
```proto
289-
edition = "2023"
290-
options features.repeated_field_encoding = EXPANDED;
289+
edition = "2023";
290+
option features.repeated_field_encoding = EXPANDED;
291291
292292
message Foo {
293293
repeated int32 bar = 6 [features.repeated_field_encoding=PACKED];
@@ -298,7 +298,7 @@ message Foo {
298298
The following shows a proto3 file:
299299

300300
```proto
301-
syntax = "proto3"
301+
syntax = "proto3";
302302
303303
message Foo {
304304
repeated int32 bar = 6;
@@ -309,7 +309,7 @@ message Foo {
309309
After running Prototiller, the equivalent code might look like this:
310310

311311
```proto
312-
edition = "2023"
312+
edition = "2023";
313313
314314
message Foo {
315315
repeated int32 bar = 6;
@@ -346,7 +346,7 @@ and after of a proto3 file.
346346
The following code sample shows a proto2 file:
347347

348348
```proto
349-
syntax = "proto2"
349+
syntax = "proto2";
350350
351351
message MyMessage {
352352
string foo = 1;
@@ -356,7 +356,7 @@ message MyMessage {
356356
After running Prototiller, the equivalent code might look like this:
357357

358358
```proto
359-
edition = "2023"
359+
edition = "2023";
360360
361361
message MyMessage {
362362
string foo = 1 [features.utf8_validation = NONE];
@@ -410,7 +410,7 @@ message Msg {
410410
After running Prototiller, the equivalent code might look like this:
411411

412412
```proto
413-
edition = "2023"
413+
edition = "2023";
414414
415415
import "myproject/proto3file.proto";
416416

0 commit comments

Comments
 (0)