From e7b93994095e277175f1293cc0cd2165ac6991b1 Mon Sep 17 00:00:00 2001 From: Sam Kosh Date: Fri, 17 Jul 2026 15:41:33 +0300 Subject: [PATCH] docs: fix typos in go generated code guide --- content/reference/go/go-generated.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/reference/go/go-generated.md b/content/reference/go/go-generated.md index b571e3a0..f6b3b12d 100644 --- a/content/reference/go/go-generated.md +++ b/content/reference/go/go-generated.md @@ -263,6 +263,7 @@ Thus, the proto field `birth_year` becomes `BirthYear` in Go, and For the field definition: ```proto +// proto2 int32 birth_year = 1; ``` @@ -283,6 +284,7 @@ is replaced with the corresponding Go type according to the For this field definition: ```proto +// proto3 int32 birth_year = 1; ``` @@ -292,7 +294,7 @@ an accessor method `GetBirthYear()` which returns the `int32` value in [zero value](https://golang.org/ref/spec#The_zero_value) of that type if the field is unset (`0` for numbers, the empty string for strings). -The `FirstActiveYear` struct field will be of type `*int32`, because it is +The `BirthYear` struct field will be of type `*int32`, because it is marked `optional`. For other scalar field types (including `bool`, `bytes`, and `string`), `int32` @@ -325,7 +327,7 @@ message Concert { } // editions -message Concer { +message Concert { Band headliner = 1; } ```