Skip to content

Commit

Permalink
casttype: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Adphi committed Sep 24, 2021
1 parent 2bb1bd9 commit 41c7ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patch/casttype.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion patch/go.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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<Field>)
Expand Down

0 comments on commit 41c7ded

Please sign in to comment.