mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
machine/usb/descriptor: rename and export Append() to make it easier to create new descriptors in user code
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -46,7 +46,7 @@ func (d *Descriptor) Configure(idVendor, idProduct uint16) {
|
||||
conf.TotalLength(uint16(len(d.Configuration)))
|
||||
}
|
||||
|
||||
func appendSlices[T any](slices [][]T) []T {
|
||||
func Append[T any](slices [][]T) []T {
|
||||
var size, pos int
|
||||
|
||||
for _, s := range slices {
|
||||
|
||||
Reference in New Issue
Block a user