Skip to content

Commit e7b9399

Browse files
Sam KoshSam Kosh
authored andcommitted
docs: fix typos in go generated code guide
1 parent c42a0a8 commit e7b9399

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

content/reference/go/go-generated.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ Thus, the proto field `birth_year` becomes `BirthYear` in Go, and
263263
For the field definition:
264264

265265
```proto
266+
// proto2
266267
int32 birth_year = 1;
267268
```
268269

@@ -283,6 +284,7 @@ is replaced with the corresponding Go type according to the
283284
For this field definition:
284285

285286
```proto
287+
// proto3
286288
int32 birth_year = 1;
287289
```
288290

@@ -292,7 +294,7 @@ an accessor method `GetBirthYear()` which returns the `int32` value in
292294
[zero value](https://golang.org/ref/spec#The_zero_value) of that type
293295
if the field is unset (`0` for numbers, the empty string for strings).
294296

295-
The `FirstActiveYear` struct field will be of type `*int32`, because it is
297+
The `BirthYear` struct field will be of type `*int32`, because it is
296298
marked `optional`.
297299

298300
For other scalar field types (including `bool`, `bytes`, and `string`), `int32`
@@ -325,7 +327,7 @@ message Concert {
325327
}
326328
327329
// editions
328-
message Concer {
330+
message Concert {
329331
Band headliner = 1;
330332
}
331333
```

0 commit comments

Comments
 (0)