From c6b9a04e9f135b09c574ee8cef65113e4aacfc71 Mon Sep 17 00:00:00 2001 From: Sebastian Zagrodzki Date: Sat, 6 May 2017 02:19:57 +0200 Subject: [PATCH] Document Interface parameters. --- config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.go b/config.go index fa0a786..830a612 100644 --- a/config.go +++ b/config.go @@ -80,6 +80,8 @@ func (c *Config) String() string { } // Interface claims and returns an interface on a USB device. +// inft specifies the number of an interface to claim, and alt specifies the +// alternate setting number for that interface. func (c *Config) Interface(intf, alt int) (*Interface, error) { if c.dev == nil { return nil, fmt.Errorf("Interface(%d, %d) called on %s after Close", intf, alt, c)