From 41c7ded6c9da651a54b7f625731adfe64f8dbfa5 Mon Sep 17 00:00:00 2001 From: Adphi Date: Fri, 24 Sep 2021 13:27:46 +0200 Subject: [PATCH] casttype: fix typo --- patch/casttype.go | 2 +- patch/go.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/patch/casttype.go b/patch/casttype.go index bf4a566..f8f9920 100644 --- a/patch/casttype.go +++ b/patch/casttype.go @@ -40,10 +40,10 @@ func (p *Patcher) patchTypeDef(id *ast.Ident, obj types.Object) { } return true } + return false default: return false } - return false } // Cast Field definition diff --git a/patch/go.proto b/patch/go.proto index 5ae6ea0..451f584 100644 --- a/patch/go.proto +++ b/patch/go.proto @@ -24,7 +24,7 @@ message Options { // The casstype option changes the generated field type. // All generated code assumes that this type is castable to the protocol buffer field type, // so it does not work for messages types. - // Rrepeated fields are also supported, both as '[]Type' or 'Types' where Types is a named slice type. + // Repeated fields are also supported, both as '[]Type' or 'Types' where Types is a named slice type. optional string casttype = 3; // The getter option renames the generated getter method (default: Get)