mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-10 22:13:39 +00:00
machine/usb: rename 'New()' to 'Port()' to have the API better match the singleton that is actually being returned
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -24,8 +24,8 @@ func init() {
|
||||
}
|
||||
}
|
||||
|
||||
// New returns hid-mouse.
|
||||
func New() *midi {
|
||||
// Port returns the USB midi port.
|
||||
func Port() *midi {
|
||||
return Midi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user