Commit 836229a0 authored by Eric Myhre's avatar Eric Myhre

fixup a few comments

parent a8812608
......@@ -376,7 +376,9 @@ func (gk generateKindedRejections_Link) EmitNodeMethodAsString(w io.Writer) {
// Embeddable to do all the "nope" methods at once.
//
// Used for anything that "acts like" map (so, also struct).
// Used for anything that "acts like" list (mostly this is just lists,
// but even e.g. structs-with-a-tuple-representation can end up using this
// as part of emitting their representation nodes).
type generateKindedRejections_List struct {
TypeIdent string // see doc in generateKindedRejections
TypeProse string // see doc in generateKindedRejections
......
......@@ -24,8 +24,7 @@ type generateKindList struct {
}
func (gk generateKindList) EmitNodeType(w io.Writer) {
// Observe that we get a '*' if a field is *either* nullable *or* optional;
// and we get an extra bool for the second cardinality +1'er if both are true.
// Observe that we get a '*' if the values are nullable.
doTemplate(`
var _ ipld.Node = {{ .Type | mungeTypeNodeIdent }}{}
var _ typed.Node = {{ .Type | mungeTypeNodeIdent }}{}
......@@ -66,7 +65,7 @@ func (gk generateKindList) EmitNodeMethodLookupIndex(w io.Writer) {
{{- else }}
return x.x[index], nil
{{- end }}
}
}
`, w, gk)
}
......
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