Skip to content

Commit

Permalink
Merge pull request #563 from bogdan-deac/minor-fix-comment-list
Browse files Browse the repository at this point in the history
Fix Description of New<name>_List
  • Loading branch information
lthibault committed Apr 30, 2024
2 parents 0d218d2 + 404f66b commit f68dd6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion capnpc-go/templates/interfaceList
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// {{.Node.Name}}_List is a list of {{.Node.Name}}.
type {{.Node.Name}}_List = capnp.CapList[{{.Node.Name}}]

// New{{.Node.Name}} creates a new list of {{.Node.Name}}.
// New{{.Node.Name}}_List creates a new list of {{.Node.Name}}.
func New{{.Node.Name}}_List(s *capnp.Segment, sz int32) ({{.Node.Name}}_List, error) {
l, err := capnp.NewPointerList(s, sz)
return capnp.CapList[{{.Node.Name}}](l), err
Expand Down

0 comments on commit f68dd6e

Please sign in to comment.