Commit a1ef272f authored by Kirill Smelkov's avatar Kirill Smelkov

go/neo/proto: Cosmetics

parent e8143557
......@@ -106,7 +106,7 @@ type PktHeaderN struct {
MsgLen packed.BE32 // payload message length (excluding packet header)
}
// Msg is the interface implemented by all NEO messages.
// Msg is the interface representing a NEO message.
type Msg interface {
// marshal/unmarshal into/from wire format:
......
......@@ -478,7 +478,7 @@ func typeSizeFixed(encoding byte, typ types.Type) (wireSize int, ok bool) {
return size.num, true
}
// interface of a codegenerator (for sizer/coder/decoder)
// interface of a codegenerator (for sizer/encoder/decoder)
type CodeGenerator interface {
// codegenerator generates code for this encoding
encoding() byte
......@@ -904,6 +904,8 @@ func (d *decoderCommon) generatedCode() string {
return code.String()
}
// ---- basic types ----
// N: emit code to size/encode/decode basic fixed type
func (s *sizerN) genBasic(path string, typ *types.Basic, userType types.Type) {
basic := basicTypesN[typ.Kind()]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment